Skip to main content
CVE-2025-15366VulnerabilityPublished Updated

CVE-2025-15366: Python Software Foundation CPython · Command Injection

Affects Python Software Foundation CPythonSource CVE Database V5

0

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

Data as of 25 Oct 2026, 19:02 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 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.15.0a6, 3.14.7, 3.13.15
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: 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 2026-10-25.

What to do

Upgrade Python Software Foundation CPython to 3.15.0a6, 3.14.7 or 3.13.15.

Affected software

ProductAffectedFixed in
Python Software FoundationCPythonAffected
  • <3.13.15
  • >=3.14.0 <3.14.7
  • >=3.15.0a1 <3.15.0a6
Fixed in
  • 3.15.0a6
  • 3.14.7
  • 3.13.15
GitHubCPythonpkg:github/CPythonOther threatsAffected
  • <3.13.15
  • >=3.14.0 <3.14.7
  • >=3.15.0a1 <3.15.0a6
Fixed in
  • 3.13.15
  • 3.14.7
  • 3.15.0a6

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

AI-suggested

The known mitigation is to reject commands containing control characters to prevent injection.

Description

The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.

References

Community reviews

Loading reviews…