cbcvebase.
CVE-2021-4189
published 2022-08-24

CVE-2021-4189: A flaw was found in Python, specifically in the FTP (File Transfer Protocol) client library in PASV (passive) mode. The issue is how the FTP client trusts the…

PriorityP432medium5.3CVSS 3.1
AVNACLPRNUINSUCLINAN
EPSS
3.41%
88.8th percentile
A flaw was found in Python, specifically in the FTP (File Transfer Protocol) client library in PASV (passive) mode. The issue is how the FTP client trusts the host from the PASV response by default. This flaw allows an attacker to set up a malicious FTP server that can trick FTP clients into connecting back to a given IP address and port. This vulnerability could lead to FTP client scanning ports, which otherwise would not have been possible.

Affected

25 ranges
VendorProductVersion rangeFixed in
debiandebian_linux——
debiandebian_linux——
debianpypy3< pypy3 7.3.5+dfsg-2 (bookworm)pypy3 7.3.5+dfsg-2 (bookworm)
debianpython2.7< pypy3 7.3.5+dfsg-2 (bookworm)pypy3 7.3.5+dfsg-2 (bookworm)
debianpython3.11——
debianpython3.13——
debianpython3.14——
debianpython3.9< pypy3 7.3.5+dfsg-2 (bookworm)pypy3 7.3.5+dfsg-2 (bookworm)
pythonpython——
pythonpython>= 3.6.0 < 3.6.143.6.14
pythonpython>= 3.7.0 < 3.7.113.7.11
pythonpython>= 3.8.0 < 3.8.93.8.9
pythonpython>= 3.9.0 < 3.9.33.9.3
python_software_foundationcpython< 3.10.213.10.21
python_software_foundationcpython>= 3.11.0 < 3.11.163.11.16
python_software_foundationcpython>= 3.12.0 < 3.12.143.12.14
python_software_foundationcpython>= 3.13.0 < 3.13.143.13.14
python_software_foundationcpython>= 3.14.0 < 3.14.63.14.6
python_software_foundationcpython>= 3.15.0a1 < 3.15.0b23.15.0b2
redhatenterprise_linux——
ubuntupython3.10——
ubuntupython3.10——
ubuntupython3.12——
ubuntupython3.12——
ubuntupython3.14——

CVSS provenance

nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
osv7.6HIGH
vendor_ubuntu7.6HIGH
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.