{"id":"CVE-2026-8328","published":"2026-05-13T20:14:33Z","modified":"2026-11-10T12:40:39Z","title":"FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"The ftpcp() function in Lib/ftplib.py was not updated when \nCVE-2021-4189 was fixed. While makepasv() was patched to replace \nserver-supplied PASV host addresses with the actual peer address \n(getpeername()[0]), ftpcp() still calls parse227() directly and passes \nthe raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00457,"percentile":0.40559,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/python/cpython/issues/87451","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/pull/149648","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb","tags":["patch"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":8.11},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.21",">= 3.11.0, < 3.11.16",">= 3.12.0, < 3.12.14",">= 3.13.0, < 3.13.14",">= 3.14.0, < 3.14.6",">= 3.15.0a1, < 3.15.0b2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-14T12:49:18.311219Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-30177","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-python-software-foundation-cpython-cve-2021-4189","parents":[{"from":"CVE-2021-4189","to":"CVE-2026-8328","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This patch is related to CVE-2021-4189.","from":"CVE.org","in":"CVE-2026-8328"},{"kind":"same-code","provenance":"machine","files":["Lib/ftplib.py"],"commits":["https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e","https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06","https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0"],"basis":"rarely changed file"}]}]}}