CVE-2021-4189: debian debian_linux Unchecked Return Value
Vulnerability summary
CVE-2021-4189 is a medium (CVSS 5.3) Unchecked Return Value vulnerability in debian debian_linux. EPSS estimates a 3.41% chance of exploitation in the next 30 days, higher than 88.8% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 27 · Related 18Timeline
- 24-08-2022PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
3.41%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
Increase +0.21 pp
From 3.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu6 products
- python2.7< 2.7.6-8ubuntu0.6+esm12 | < 2.7.12-1ubuntu0~16.04.18+esm1 | < 2.7.17-1~18.04ubuntu1.7 | < 2.7.18-1~20.04.3+esm1 | < 2.7.18-13ubuntu1.1+esm2
- python3.4< 3.4.3-1ubuntu1~14.04.7+esm12
- python3.5< 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 | < 3.5.2-2ubuntu0~16.04.13+esm2
- python3.6< 3.6.9-1~18.04ubuntu1.7
- python3.7< 3.7.5-2ubuntu1~18.04.2+esm3
Debian2 products
- pypy3< 7.3.5+dfsg-2
- debian_linuxEOL10.0 | 11.0
Redhat2 products
Netapp1 product
Opensuse1 product
- python&distro=openSUSE Tumbleweed< 2.7.18-15.1
Python1 product
- pythonEOL≥ 3.6.0, < 3.6.14 | ≥ 3.7.0, < 3.7.11 | ≥ 3.8.0, < 3.8.9 | ≥ 3.9.0, < 3.9.3 | 3.10.0
6 vendors · 13 products
References
21 links- github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188eREPORTPatchThird Party Advisory
- access.redhat.com/security/cve/CVE-2021-4189Third Party Advisory
- security.netapp.com/advisory/ntap-20221104-0004/Third Party Advisory