CVE-2026-8328 Details
Description
The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed. While makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address (getpeername()[0]), ftpcp() still calls parse227() directly and passes the raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189.
A vulnerability in the ftplib module of Python's standard library allows for server-side request forgery (SSRF) by trusting server-supplied PASV host addresses. The issue arises in the ftpcp() function, which still uses raw, attacker-controllable IP addresses and ports from the PASV response, instead of the actual peer address. This flaw could be exploited by a malicious FTP server to redirect connections to arbitrary IP addresses and ports, potentially leading to port scanning and banner grabbing from private networks.
Users can upgrade to Python versions 3.10.13, 3.11.6, 3.12.1, 3.13.0, 3.14.0, or 3.15.0, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 13, 2026 | CVE Modified | [email protected] |
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 10, 2026 | CVE Modified | [email protected] |
| May 13, 2026 | New CVE Received | [email protected] |