CVE-2021-4189

State
Published
Severity
5.3 Medium
Published
Aug 24, 2022
Updated
Oct 14, 2026
Reserved
Dec 29, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NCISA-ADP

Weaknesses

Affected Products

ProductVersions
pythonn/a
  • Fixed in python 3.6.14, python 3.7.11, python 3.8.9, python 3.9.3, python 3.10.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.