CVE-2021-4189
Reported by redhat · Published August 24, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python-min | Bitnami | 3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14 |
| python-debug | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| python-tools | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| libpython | Bitnami | 3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14 |
| python | Bitnami | 3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14 |
| python-devel | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| python-libs | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| python | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| python | dhi.docker.com | 3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14 |
| python-test | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| tkinter | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | Siemens | 3.1.5 |
12 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | python | Fixed in python 3.6.14, python 3.7.11, python 3.8.9, python 3.9.3, python 3.10.0 |
| amazon:2 | python-debug | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.7, 3.1.0 |
| amazon:2 | python-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python-devel | 0 |
| amazon:2 | python-libs | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | 3.1.7, 3.1.0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python | 0 |
| amazon:2 | python-test | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.7, 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | 3.1.0, 3.1.7 |
| amazon:2 | tkinter | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.0, 3.1.7 |
| n/a | python | Fixed in python 3.6.14, python 3.7.11, python 3.8.9, python 3.9.3, python 3.10.0 |
Timeline
- Mar 16, 2022 CVE Published
- Aug 25, 2022 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jun 2, 2026 Security Advisory (21 in total, the first dated here)
- Jul 20, 2026 Coalition ESS Score
- Aug 12, 2026 Distribution Patch (14 in total, the first dated here)
- Oct 7, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-4189
vulnetix vdb fixes CVE-2021-4189
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-4189/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20230524 [SECURITY] [DLA 3432-1] python2.7 security update mailing-list
- [debian-lts-announce] 20230630 [SECURITY] [DLA 3477-1] python3.7 security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html url