A flaw was found in Python, specifically in the FTP (File...
Moderate severity
Unreviewed
Published
Aug 25, 2022
to the GitHub Advisory Database
•
Updated Oct 14, 2026
Description
Published by the National Vulnerability Database
Aug 24, 2022
Published to the GitHub Advisory Database
Aug 25, 2022
Last updated
Oct 14, 2026
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.
References