CVE-2021-4189

MEDIUMCVSS 5.3/10EPSS 2.51%

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
5.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

EPSS Probability
2.51%

82.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PythonPython>= 3.6.0, < 3.6.14
PythonPython>= 3.7.0, < 3.7.11
PythonPython>= 3.8.0, < 3.8.9
PythonPython>= 3.9.0, < 3.9.3
PythonPython3.10.0
DebianDebian Linux10.0
DebianDebian Linux11.0
RedhatSoftware CollectionsAll versions
RedhatEnterprise Linux8.0
NetappOntap Select Deploy Administration UtilityAll versions

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-4189?
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.
How severe is CVE-2021-4189?
CVE-2021-4189 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 2.51% probability of exploitation in the next 30 days.
How do I fix CVE-2021-4189?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-4189?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST