Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-8328: CWE-918 Server-Side request forgery (SSRF) in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2026-8328cvecve-2026-8328cwe-918
Published: Wed May 13 2026 (05/13/2026, 20:14:33 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: 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

AILast updated: 05/13/2026, 20:52:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses