CVE-2026-8328: CWE-918 Server-Side request forgery (SSRF) in Python Software Foundation CPython
CVE-2026-8328 is a server-side request forgery (SSRF) vulnerability in the Python Software Foundation's CPython implementation. The vulnerability exists because the ftpcp() function in Lib/ftplib. py was not updated to fix an issue addressed in CVE-2021-4189. Specifically, while the makepasv() function was patched to replace server-supplied PASV host addresses with the actual peer address, ftpcp() still directly calls parse227() and passes attacker-controlled IP addresses and ports to target. sendport(). This allows potential SSRF attacks via crafted FTP responses.
AI Analysis
Technical Summary
This vulnerability arises from inconsistent patching in CPython's ftplib module. The ftpcp() function fails to sanitize or validate server-supplied IP addresses and ports, unlike the patched makepasv() function. As a result, an attacker controlling the FTP server response can supply malicious IP addresses and ports that are then used by the client, enabling SSRF attacks. The issue is related to CWE-918 and is a regression or incomplete fix following CVE-2021-4189. The CVSS 4.0 base score is 5.9, indicating medium severity with network attack vector, low attack complexity, partial attack traceability, no privileges required, and user interaction needed.
Potential Impact
An attacker controlling or influencing the FTP server response can cause the client to make unintended network requests to arbitrary IP addresses and ports. This SSRF vulnerability may allow attackers to access internal resources or services not normally reachable by the client. However, exploitation requires user interaction and the attacker must control or manipulate the FTP server response. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or patch links are currently available. Users should monitor the Python Software Foundation advisories for updates. Until a patch is released, avoid connecting to untrusted FTP servers or using the vulnerable ftpcp() function. No vendor advisory content is provided to indicate if any temporary mitigations or workarounds exist.
CVE-2026-8328: CWE-918 Server-Side request forgery (SSRF) in Python Software Foundation CPython
Description
CVE-2026-8328 is a server-side request forgery (SSRF) vulnerability in the Python Software Foundation's CPython implementation. The vulnerability exists because the ftpcp() function in Lib/ftplib. py was not updated to fix an issue addressed in CVE-2021-4189. Specifically, while the makepasv() function was patched to replace server-supplied PASV host addresses with the actual peer address, ftpcp() still directly calls parse227() and passes attacker-controlled IP addresses and ports to target. sendport(). This allows potential SSRF attacks via crafted FTP responses.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from inconsistent patching in CPython's ftplib module. The ftpcp() function fails to sanitize or validate server-supplied IP addresses and ports, unlike the patched makepasv() function. As a result, an attacker controlling the FTP server response can supply malicious IP addresses and ports that are then used by the client, enabling SSRF attacks. The issue is related to CWE-918 and is a regression or incomplete fix following CVE-2021-4189. The CVSS 4.0 base score is 5.9, indicating medium severity with network attack vector, low attack complexity, partial attack traceability, no privileges required, and user interaction needed.
Potential Impact
An attacker controlling or influencing the FTP server response can cause the client to make unintended network requests to arbitrary IP addresses and ports. This SSRF vulnerability may allow attackers to access internal resources or services not normally reachable by the client. However, exploitation requires user interaction and the attacker must control or manipulate the FTP server response. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or patch links are currently available. Users should monitor the Python Software Foundation advisories for updates. Until a patch is released, avoid connecting to untrusted FTP servers or using the vulnerable ftpcp() function. No vendor advisory content is provided to indicate if any temporary mitigations or workarounds exist.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-05-11T15:06:00.859Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04e0c9cbff5d861008115e
Added to database: 5/13/2026, 8:36:25 PM
Last enriched: 5/13/2026, 8:52:14 PM
Last updated: 5/13/2026, 10:03:02 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.