CVE-2026-12345: python software foundation cpython Link Following
Vulnerability summary
CVE-2026-12345 is a medium (CVSS 5.9) Link Following vulnerability in python software foundation cpython. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 29-09-2026PublishedVulnerability first disclosed.
- 10-10-2026Last modifiedVulnerability information updated.
Description
The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. An attacker who can modify the tree during cleanup can replace a directory with a symbolic link, causing files outside of the temporary directory to be deleted or have their permissions and file flags reset, with the privileges of the process performing the cleanup. Note that platforms where shutil.rmtree.avoids_symlink_attacks is false, remain affected, and file flags may still be reset outside of the tree on all platforms.
CVSS metrics
7 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated5.9MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.9MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
- NVDNIST5.9MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat32 products
- python-unversioned-command< 0:3.14.8-1.hum1
- python3< 0:3.14.8-1.hum1
- python3-debug< 0:3.14.8-1.hum1
- python3-devel< 0:3.14.8-1.hum1
- python3-idle< 0:3.14.8-1.hum1
Ubuntu11 products
- python2.7All versions (No fix recorded)
- python3.10All versions (No fix recorded)
- python3.11All versions (No fix recorded)
- python3.12All versions (No fix recorded)
- python3.14All versions (No fix recorded)
Chainguard6 products
- python-3.10All versions (No fix recorded)
- python-3.11All versions (No fix recorded)
- python-3.12All versions (No fix recorded)
- python-3.13All versions (No fix recorded)
- python-3.14< 3.14.8_git20261014-r0 | All versions (No fix recorded)
Wolfi6 products
- python-3.10All versions (No fix recorded)
- python-3.11All versions (No fix recorded)
- python-3.12All versions (No fix recorded)
- python-3.13All versions (No fix recorded)
- python-3.14< 3.14.8_git20261014-r0 | All versions (No fix recorded)
Debian5 products
- pypy3All versions (No fix recorded)
- python3.11All versions (No fix recorded)
- python3.13All versions (No fix recorded)
- python3.14All versions (No fix recorded)
- python3.15All versions (No fix recorded) | < 3.15.0~rc3-1
Python software foundation1 product
- cpython< 3.12.15 | ≥ 3.15.0a1, < 3.15.0rc3
6 vendors · 61 products
References
24 links- images.redhat.comARTICLE
Show all 24 references
- github.com/python/cpythonPACKAGE