CVE-2026-8328
EPSS 0.05%FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address
Published: 5/13/2026Modified: 5/22/2026
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.
Affected packages (9)
- Bitnami/libpythonfrom 0, < 3.14.5
- Bitnami/pythonfrom 0, < 3.14.5
- Bitnami/python-minfrom 0, < 3.14.5
- Debian/pypy3from 0
- Debian/python2.7from 0
- Debian/python3.11from 0
- Debian/python3.13from 0
- Debian/python3.14from 0
- Debian/python3.9from 0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
References (5)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-8328
- WEBhttps://github.com/python/cpython/issues/87451
- WEBhttps://github.com/python/cpython/pull/149648
- WEBhttps://mail.python.org/archives/list/[email protected]/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2026-8328