Skip to main content
VulnerabilityPublished Updated

CVE-2026-8328: Python Software Foundation CPython · Server-Side Request Forgery (SSRF)

Affects Python Software Foundation CPythonSource CVE Database V5

0
Compare

Mentioned vulnerabilities

Not known to be exploited · CVSS 5.9 Medium · fixed in 3.15.0b2 : update Python Software Foundation CPython when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.15.0b2, 3.14.6, 3.13.14 +3
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Python Software FoundationCPythonAffected
  • >=3.15.0a1 <3.15.0b2
Fixed in
  • 3.15.0b2
Python Software FoundationCPythonAffected
  • >=3.14.0 <3.14.6
Fixed in
  • 3.14.6
Python Software FoundationCPythonAffected
  • >=3.13.0 <3.13.14
Fixed in
  • 3.13.14
Python Software FoundationCPythonAffected
  • >=3.12.0 <3.12.14
Fixed in
  • 3.12.14
Python Software FoundationCPythonAffected
  • >=3.11.0 <3.11.16
Fixed in
  • 3.11.16
Python Software FoundationCPythonAffected
  • <3.10.21
Fixed in
  • 3.10.21

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, users should exercise caution when using the ftpcp() function with untrusted FTP servers or inputs.

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.

References

Community reviews

Loading reviews…