CVE-2026-8328

Medium

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductCPython
PublishedMay 13, 2026
First seenMay 13, 2026

How to fix

Affected products

ProductAffected versionsFixed in
Python Software Foundation CPythonv < 3.10.21, 3.11.0 ≤ v < 3.11.16, 3.12.0 ≤ v < 3.12.14, 3.13.0 ≤ v < 3.13.14, 3.14.0 ≤ v < 3.14.6, 3.15.0a1 ≤ v < 3.15.0b23.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.