Skip to main content
VulnerabilityPublished Updated

CVE-2026-12345: Python Software Foundation CPython · Race Condition

Affects Python Software Foundation CPythonSource CVE Database V5

0
Compare

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

Data as of 12 Nov 2026, 23:24 UTC

CVSS 4.0 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (PSF)CVSS 4.05.9
EPSS
0.3% chance of exploitation in 30 days – higher than 28% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.15.0rc3, 3.14.9, 3.13.18 +1
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  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), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.

What to do

Upgrade Python Software Foundation CPython to 3.15.0rc3, 3.14.9, 3.13.18 or 3.12.15.

Affected software

ProductAffectedFixed in
Python Software FoundationCPythonAffected
  • >=3.15.0a1 <3.15.0rc3
Fixed in
  • 3.15.0rc3
Python Software FoundationCPythonAffected
  • >=3.14.0 <3.14.9
Fixed in
  • 3.14.9
Python Software FoundationCPythonAffected
  • >=3.13.0 <3.13.18
Fixed in
  • 3.13.18
Python Software FoundationCPythonAffected
  • <3.12.15
Fixed in
  • 3.12.15
GitHubCPythonpkg:github/CPythonOther threatsAffected
  • <3.12.15
  • >=3.13.0 <3.13.18
  • >=3.14.0 <3.14.9
  • >=3.15.0a1 <3.15.0rc3
Fixed in
  • 3.12.15
  • 3.13.18
  • 3.14.9
  • 3.15.0rc3

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

AI-suggested

Fixed versions of CPython are 3.12.15, 3.13.18, 3.14.9, and 3.15.0rc3 and later. Users should upgrade to these versions to remediate the vulnerability. No alternative mitigations are indicated. Patch status is confirmed by the vendor's fixed versions.

Description

CVE-2026-12345 is a race condition vulnerability in the cleanup process of tempfile.TemporaryDirectory in CPython. An attacker able to modify the directory tree during cleanup can replace a directory with a symbolic link, leading to deletion or permission changes of files outside the temporary directory with the privileges of the cleanup process. This affects multiple CPython versions prior to fixed releases. The vulnerability is medium severity with a CVSS score of 5.9.

References

Community reviews

Loading reviews…