CVE-2021-4189
Description
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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:LConfidentialityLow
I:NIntegrityNone
A:NAvailabilityNone
Weaknesses
Affected Products
Red Hat Inc.
commercial·USaka redhat, red hat
Сообщество свободного программного обеспечения
oss-projectaka fsf
Canonical Ltd.
commercial·GBaka canonical
ООО «РусБИТех-Астра»
commercial·RUaka rusbitech-astra
Fedora Project
oss-project·USaka fedora
Python Software Foundation
oss-project·USaka psf
and 8 more affected products View all →
Exploitability
Official Patch Available
References
https://bugs.python.org/issue43285
bugs.python.org
https://python-security.readthedocs.io/vuln/ftplib-pasv.html
python-security.readthedocs.io
https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e
github.com
and 33 more references View all →
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2021-4189 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows
