CVE-2026-8328FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV…
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | python3.14 | Fixed | 3.14.4-1ubuntu0.1 | UBUNTU-CVE-2026-8328 |
| Ubuntu 25.10 | python3.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-8328 | |
| Ubuntu 25.10 | python3.14 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-8328 | |
| Ubuntu 24.04 | python3.12 | Fixed | 3.12.3-1ubuntu0.15 | UBUNTU-CVE-2026-8328 |
| Ubuntu 22.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 22.04 | python3.10 | Fixed | 3.10.12-1~22.04.16 | UBUNTU-CVE-2026-8328 |
| Ubuntu 22.04 | python3.11 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 20.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 20.04 | python3.8 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 20.04 | python3.9 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 18.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 18.04 | python3.6 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 18.04 | python3.7 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 18.04 | python3.8 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 16.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 16.04 | python3.5 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 14.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 14.04 | python3.4 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Ubuntu 14.04 | python3.5 | Fix pending | UBUNTU-CVE-2026-8328 | |
| Debian 14 | pypy3 | Fixed | 8.0.0+dfsg-1 | DEBIAN-CVE-2026-8328 |
| Debian 14 | python3.14 | Fixed | 3.14.6-1 | DEBIAN-CVE-2026-8328 |
| Debian 13 | pypy3 | Fix pending | DEBIAN-CVE-2026-8328 | |
| Debian 13 | python3.13 | Fixed | 3.13.5-2+deb13u3 | DEBIAN-CVE-2026-8328 |
| Debian 12 | pypy3 | Fix pending | DEBIAN-CVE-2026-8328 | |
| Debian 12 | python3.11 | Fixed | 3.11.2-6+deb12u9 | DEBIAN-CVE-2026-8328 |
| Alpine Linux 3.24 | python3 | Fixed | 3.14.7-r0 | ALPINE-CVE-2026-8328 |
What the vendor says
As published in the CVE record by PSF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Python Software Foundation CPython: affected: before 3.10.21, 3.11.0 to before 3.11.16, 3.12.0 to before 3.12.14, 3.13.0 to before 3.13.14, 3.14.0 to before 3.14.6, 3.15.0a1 to before 3.15.0b2; fixed in
3.10.21,3.11.16,3.12.14,3.13.14,3.14.6,3.15.0b2
Vendor advisories:
- https://github.com/python/cpython/pull/149648 (patch)
- https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3L… (vendor-advisory)
- https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06 (patch)
- https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0 (patch)
- https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763 (patch)
- https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d (patch)
References
- https://github.com/python/cpython/issues/87451
- https://github.com/python/cpython/pull/149648
- https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/
- https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06
- https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0
- https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763
- https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d
- https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9
- https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f
- https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.