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

VectorAV: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

Weakness Enumeration

Related Identifiers

BIT-LIBPYTHON-2026-8328
BIT-PYTHON-2026-8328
BIT-PYTHON-MIN-2026-8328
CVE-2026-8328
ECHO-1E9D-9CBE-8622
PSF-2026-24

Affected Products

Cpython