CVE-2021-4189Python
Medium 5.3 No auth needed
Follow: this CVE · Python · Python We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 3.6% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Aug 24, 2022
- Updated
- Nov 10, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-252
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Python.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| 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 |
| redhat | enterprise_linux | 8.0 |
| netapp | ontap_select_deploy_administration_utility | all |
Official advisories
- python316-3.16.0~a1-1.1 on GA media · SUSE · openSUSE-SU-2026:12477-1 · Nov 6, 2026 Critical
- Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.7 · Siemens · SSA-457936 · Oct 13, 2026 Critical
- Security update for python312 · SUSE · SUSE-SU-2026:4534-1 · Oct 6, 2026 Critical
- Security update for python311 · SUSE · SUSE-SU-2026:23743-1 · Sep 16, 2026 Critical
Also: SUSE (+8)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com Third Party Advisory
- bugs.python.org Patch Vendor Advisory
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- github.com Patch Third Party Advisory
- lists.debian.org
- lists.debian.org
- python-security.readthedocs.io Patch Third Party Advisory
- security-tracker.debian.org Third Party Advisory
- security.netapp.com Third Party Advisory
- lists.debian.org
- cert-portal.siemens.com
- cert-portal.siemens.com