{"id":"CVE-2026-8328","aliases":["CVE-2026-8328","PSF-0000-CVE-2026-8328","BIT-LIBPYTHON-2026-8328","BIT-PYTHON-2026-8328","BIT-PYTHON-MIN-2026-8328","PSF-2026-24"],"related":[],"kind":"vulnerability","state":"published","title":"FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"La función ftpcp() en Lib/ftplib.py no se actualizó cuando se corrigió CVE-2021-4189. Aunque makepasv() fue parcheada para reemplazar las direcciones de host PASV proporcionadas por el servidor con la dirección real del par (getpeername()[0]), ftpcp() todavía llama a parse227() directamente y pasa la dirección IP y el puerto sin procesar controlables por el atacante a target.sendport(). Este parche está relacionado con CVE-2021-4189.","source":"nvd"}],"published":"2026-05-13T20:14:33.751Z","modified":"2026-11-10T13:19:41.257Z","severity":{"scorer":"PSF","scheme":"CVSS: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","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"PSF","scheme":"CVSS: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","score":5.9,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"3.10.21","status":"affected"},{"type":"python","introduced":"3.11.0","fixed":"3.11.16","status":"affected"},{"type":"python","introduced":"3.12.0","fixed":"3.12.14","status":"affected"},{"type":"python","introduced":"3.13.0","fixed":"3.13.14","status":"affected"},{"type":"python","introduced":"3.14.0","fixed":"3.14.6","status":"affected"},{"type":"python","introduced":"3.15.0a1","fixed":"3.15.0b2","status":"affected"}],"vendor":"Python Software Foundation","product":"CPython","repo":"https://github.com/python/cpython","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"5dadc64673ce875ebfb24163907777dae0f6ca06"},{"type":"git","status":"affected","fixed":"7d95a1dc7382b55cba7fdd6a110336077584a4f0"},{"type":"git","status":"affected","fixed":"bb3446dda6c49b32e67c11dbbbf221b40be00763"},{"type":"git","status":"affected","fixed":"c88704431ea3248ca769384c13856330976fac1d"},{"type":"git","status":"affected","fixed":"eac4fe3b2c77693790a5ef7dfab127c1fee81bf9"},{"type":"git","status":"affected","fixed":"2bbcf3fb7a420a05605576c0f9468d4675381b5f"},{"type":"git","status":"affected","fixed":"ef12d0dc824baccf737bba1458e5eed3d1e0fceb"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.14"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.6"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.14"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.6"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.14"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.6"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/issues/87451","tags":["issue-tracking","report","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/pull/149648","tags":["patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8328","tags":["web"],"sources":["bitnami"]}],"credits":["Qi Deng (https://github.com/ikow)","Bénédikt Tran (https://github.com/picnixz)","Gregory P. Smith (https://github.com/gpshead)"],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-14T12:49:18.311Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8328","url":"https://www.cve.org/CVERecord?id=CVE-2026-8328","licence":"CVE Terms of Use","modified":"2026-11-10T12:40:39.448Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-0000-CVE-2026-8328","url":"https://osv.dev/vulnerability/PSF-0000-CVE-2026-8328","licence":"CC-BY-4.0","modified":"2026-06-05T11:26:19.433Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2026-24","url":"https://osv.dev/vulnerability/PSF-2026-24","licence":"CC-BY-4.0","modified":"2026-07-01T16:15:08.107Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8328","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8328","licence":"Public domain","modified":"2026-11-10T13:19:41.257Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2026-8328","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-8328","licence":"Apache-2.0","modified":"2026-08-19T09:45:18.379Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2026-8328","url":"https://osv.dev/vulnerability/BIT-PYTHON-2026-8328","licence":"Apache-2.0","modified":"2026-08-19T09:45:26.253Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2026-8328","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-8328","licence":"Apache-2.0","modified":"2026-08-19T09:45:27.745Z"}],"updatedAt":"2026-11-25T22:59:21.668Z","epss":{"score":0.00441,"percentile":0.40053,"date":"2026-12-02T12:00:21.000Z"}}