CVE-2021-4189
CVE-2021-4189 Vulnerability Analysis & Exploit Intelligence
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.
Published Updated Sources: cvelistV5, redhat
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
4%
chance of exploitation in 30 days
CVSS base
5.3
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (6)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.3 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-252
References
12 on the record
- bugs.python.org/issue43285
reference
- python-security.readthedocs.io/vuln/ftplib-pasv.html
reference
- github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e
reference
- security-tracker.debian.org/tracker/CVE-2021-4189
reference
- bugzilla.redhat.com/show_bug.cgi?id=2036020
reference
- access.redhat.com/security/cve/CVE-2021-4189
reference
- security.netapp.com/advisory/ntap-20221104-0004/
reference
- lists.debian.org/debian-lts-announce/2023/05/msg00024.html
mailing-list
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-111497 Out-of-Bounds Write in Google Brotli DecoderCVSS 9.8 · CISA KEV
- CVE-2020-7247 OpenSMTPD Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-121639 WatchGuard AuthPoint Gateway Improper Authentication Allows Unauthenticated Denial of ServiceCVSS 9.2
- CVE-2026-133845 Flatpak: flatpak: sandbox escape via fd conflict in flatpak-portal spawn()CVSS 7.3
- CVE-2026-19809 Kernel stack information disclosure in the charger_get_prop() system call handlerCVSS 3.3
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.