CVE Explorer
CVE-2026-8328
The ftpcp() function in Lib/ftplib.py was not updated when
CVE-2021-4189 was fixed. While makepasv() was patched to replace
server-supplied PASV host addresses with the actual peer address
(getpeername()[0]), ftpcp() still calls parse227() directly and passes
the raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","modules":["ftplib"],"product":"CPython","repo":"https://github.com/python/cpython","vendor":"Python Software Foundation","versions":[{"lessThan":"3.13.14","status":"affected","version":"0","versionType":"python"},{"lessThan":"3.14.6","status":"affected","version":"3.14.0","versionType":"python"},{"lessThan":"3.15.0b2","status":"affected","version":"3.15.0a1","versionType":"python"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":5.9,"baseSeverity":"MEDIUM","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityIm…
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-918","description":"CWE-918 Server-Side request forgery (SSRF)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/problemTypes/0/descriptions/0
Source references
10 source assertions{"tags":["patch"],"url":"https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/8
{"tags":["patch"],"url":"https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/3
{"tags":["patch"],"url":"https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/4
{"tags":["patch"],"url":"https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/5
{"tags":["patch"],"url":"https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/6
{"tags":["patch"],"url":"https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/7
{"tags":["patch"],"url":"https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/9
{"tags":["issue-tracking"],"url":"https://github.com/python/cpython/issues/87451"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/0
{"tags":["patch"],"url":"https://github.com/python/cpython/pull/149648"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/1
{"tags":["vendor-advisory"],"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:37667db617bdff54989c2b2c92e95571109fe6135ed17c180475773f1f725a5f · sha256:0e622af27130df3f… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.