CVE-2026-8328

published 13 May 2026 · updated 16 Nov 2026

FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address

5.9MediumCVSS 5.9EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.10.21, 3.11.16, 3.12.14 and 3 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Python Software Foundation<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.0b23.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-8328 severity on Zeptric[![CVE-2026-8328](https://zeptric.io/badge/cve/CVE-2026-8328.svg)](https://zeptric.io/cve/CVE-2026-8328)