PT-2026-40802 · Python · Cpython
Bénédikt Tran
+1
·
Published
2026-05-13
·
Updated
2026-05-22
·
CVE-2026-8328
CVSS v4.0
5.9
Medium
| Vector | AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
CPython (affected versions not specified)
Description
The
ftpcp() function in Lib/ftplib.py fails to use the actual peer address, instead trusting the host address supplied by the server during a PASV command. This occurs because ftpcp() calls parse227() directly and passes the raw, attacker-controllable IP address and port to target.sendport(), leading to a Server-Side Request Forgery (SSRF), where a server is tricked into making unintended requests to internal or external resources.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
SSRF
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Cpython