# CVE-2026-8328: FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address

- Severity: Medium 5.9 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-02)
- Published: 2026-05-13T20:14:33.751Z
- Modified: 2026-11-10T13:19:41.257Z
- Also known as: PSF-0000-CVE-2026-8328, BIT-LIBPYTHON-2026-8328, BIT-PYTHON-2026-8328, BIT-PYTHON-MIN-2026-8328, PSF-2026-24
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6; from 3.15.0a1 before 3.15.0b2
- https://github.com/python/cpython: all versions; before 5dadc64673ce875ebfb24163907777dae0f6ca06; before 7d95a1dc7382b55cba7fdd6a110336077584a4f0; before bb3446dda6c49b32e67c11dbbbf221b40be00763; before c88704431ea3248ca769384c13856330976fac1d; before eac4fe3b2c77693790a5ef7dfab127c1fee81bf9; before 2bbcf3fb7a420a05605576c0f9468d4675381b5f; before ef12d0dc824baccf737bba1458e5eed3d1e0fceb
- libpython (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6
- python (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6
- python-min (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6

## Every score

- PSF: CVSS:4.0 5.9 Medium `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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/issues/87451> (issue-tracking, report, web)
- <https://github.com/python/cpython/pull/149648> (patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06> (fix, patch, web)
- <https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0> (fix, patch, web)
- <https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763> (fix, patch, web)
- <https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d> (fix, patch, web)
- <https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9> (fix, patch, web)
- <https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f> (fix, patch, web)
- <https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb> (fix, patch, web)
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-8328> (web)

## Sources

- CVE List: [CVE-2026-8328](https://www.cve.org/CVERecord?id=CVE-2026-8328), CVE Terms of Use, modified 2026-11-10
- Python Software Foundation: [PSF-0000-CVE-2026-8328](https://osv.dev/vulnerability/PSF-0000-CVE-2026-8328), CC-BY-4.0, modified 2026-06-05
- Python Software Foundation: [PSF-2026-24](https://osv.dev/vulnerability/PSF-2026-24), CC-BY-4.0, modified 2026-07-01
- NVD: [CVE-2026-8328](https://nvd.nist.gov/vuln/detail/CVE-2026-8328), Public domain, modified 2026-11-10
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-8328](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-8328), Apache-2.0, modified 2026-08-19
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-8328](https://osv.dev/vulnerability/BIT-PYTHON-2026-8328), Apache-2.0, modified 2026-08-19
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-8328](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-8328), Apache-2.0, modified 2026-08-19

---

Page: https://cve.day/CVE-2026-8328 · Whole record: https://cve.day/CVE-2026-8328.json · Rebuilt by cve.day 2026-11-25T22:59:21.668Z
