CVE-2021-4189
Last modified
CVE-2021-4189 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 2.51% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Python | Python | >= 3.6.0, < 3.6.14 |
| Python | Python | >= 3.7.0, < 3.7.11 |
| Python | Python | >= 3.8.0, < 3.8.9 |
| Python | Python | >= 3.9.0, < 3.9.3 |
| Python | Python | 3.10.0 |
| Debian | Debian Linux | 10.0 |
| Debian | Debian Linux | 11.0 |
| Redhat | Software Collections | All versions |
| Redhat | Enterprise Linux | 8.0 |
| Netapp | Ontap Select Deploy Administration Utility | All versions |
References
- https://access.redhat.com/security/cve/CVE-2021-4189Third Party Advisory
- https://bugs.python.org/issue43285Patch, Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2036020Issue Tracking, Patch, Third Party Advisory
- https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188ePatch, Third Party Advisory
- https://python-security.readthedocs.io/vuln/ftplib-pasv.htmlPatch, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2021-4189Third Party Advisory
- https://security.netapp.com/advisory/ntap-20221104-0004/Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2021-4189Third Party Advisory
- https://bugs.python.org/issue43285Patch, Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2036020Issue Tracking, Patch, Third Party Advisory
- https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188ePatch, Third Party Advisory
- https://python-security.readthedocs.io/vuln/ftplib-pasv.htmlPatch, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2021-4189Third Party Advisory
- https://security.netapp.com/advisory/ntap-20221104-0004/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-4189?
How severe is CVE-2021-4189?
How do I fix CVE-2021-4189?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-41871An issue was discovered in Socomec REMOTE VIEW PRO 2.0.41.4.…5.4
- CVE-2021-41872Skyworth Digital Technology Penguin Aurora Box 41502 has a d…7.5
- CVE-2021-41873Penguin Aurora TV Box 41502 is a high-end network HD set-top…10
- CVE-2021-41874Rejected reason: DO NOT USE THIS CVE RECORD. ConsultIDs: non…
- CVE-2021-41878A reflected cross-site scripting (XSS) vulnerability exists …6.1
- CVE-2021-4188mruby is vulnerable to NULL Pointer Dereference7.5
- CVE-2021-4190Large loop in the Kafka dissector in Wireshark 3.6.0 allows …7.5
- CVE-2021-4191An issue has been discovered in GitLab CE/EE affecting versi…5.3
- CVE-2021-41916A Cross-Site Request Forgery (CSRF) vulnerability in webTare…8.8
- CVE-2021-41917webTareas version 2.4 and earlier allows an authenticated us…5.4
- CVE-2021-41918webTareas version 2.4 and earlier allows an authenticated us…5.4
- CVE-2021-41919webTareas version 2.4 and earlier allows an authenticated us…8.8
Are you affected by CVE-2021-4189?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
