ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-8328

Details

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

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSpython2.7
All versions, no fix listed
Ubuntu:Pro:14.04:LTSpython3.4
All versions, no fix listed
Ubuntu:Pro:14.04:LTSpython3.5
All versions, no fix listed
Ubuntu:Pro:16.04:LTSpython2.7
All versions, no fix listed
Ubuntu:Pro:16.04:LTSpython3.5
All versions, no fix listed
Ubuntu:Pro:18.04:LTSpython2.7
All versions, no fix listed
Ubuntu:Pro:18.04:LTSpython3.6
All versions, no fix listed
Ubuntu:Pro:18.04:LTSpython3.7
All versions, no fix listed
Ubuntu:Pro:18.04:LTSpython3.8
All versions, no fix listed
Ubuntu:Pro:20.04:LTSpython3.8
All versions, no fix listed
Ubuntu:Pro:20.04:LTSpython2.7
All versions, no fix listed
Ubuntu:Pro:20.04:LTSpython3.9
All versions, no fix listed
Ubuntu:22.04:LTSpython3.10
All versions before 3.10.12-1~22.04.16 (fixed in 3.10.12-1~22.04.16)
Ubuntu:Pro:22.04:LTSpython2.7
All versions, no fix listed
Ubuntu:Pro:22.04:LTSpython3.11
All versions, no fix listed
Ubuntu:24.04:LTSpython3.12
All versions before 3.12.3-1ubuntu0.15 (fixed in 3.12.3-1ubuntu0.15)
Ubuntu:25.10python3.13
All versions, no fix listed
Ubuntu:25.10python3.14
All versions, no fix listed
Ubuntu:26.04:LTSpython3.14
All versions before 3.14.4-1ubuntu0.1 (fixed in 3.14.4-1ubuntu0.1)

References