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.
CVE-2021-4189
CVSS base score
5.3 (v3.1)
Severity
MEDIUM
Attack vector
Network
Weakness
CWE-252
Last modified
November 10, 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected products
python python
debian debian linux
redhat software collections
redhat enterprise linux
netapp ontap select deploy administration utility
References
- 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
- access.redhat.com Third Party Advisory