Vulnerabilities

CVE-2021-4189

Medium 5.3 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2022-08-24
Last modified
2026-11-10
Assigned by
secalert@redhat.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
2.7 % higher than 84 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Debian Debian Linux 10.0 Affected
Debian Debian Linux 11.0 Affected
Netapp Ontap Select Deploy Administration Utility all versions listed Affected
Python Python 3.10.0 Affected
Python Python ≥ 3.6.0, < 3.6.14 Affected
Python Python ≥ 3.7.0, < 3.7.11 Affected
Python Python ≥ 3.8.0, < 3.8.9 Affected
Python Python ≥ 3.9.0, < 3.9.3 Affected
Redhat Enterprise Linux 8.0 Affected
Redhat Software Collections all versions listed Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities