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.
CVE-2026-12345
This medium-severity CVE scores 5.9 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.2% (6th percentile of EPSS-scored CVEs). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.9
- EG Score
- 5.9MEDIUMmedium confidence
- EG Risk
- 27EG Risk 27/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity59% × 45%Exploitation0% × 40%Automatability0% × 15%CISA SSVC: Track at every mission impact level.Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 0.2%
- EPSS %ILE
- 6th
- KEV
- Not listed
CISA SSVCTrack at every mission impact level.
A fix is available. Apply it within your standard update timelines.
Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
September 29, 2026
Last Modified
October 3, 2026
Advisory Details (2)
Auto-updated Sep 29, 2026Race condition in the cleanup of `tempfile.TemporaryDirectory` · Issue #157579 · python/cpython · GitHub
https://github.com/python/cpython/issues/157579gh-157579: Fix race condition in the cleanup of `tempfile.TemporaryDirectory`
Fix merged in python/cpython PR #157580 on 2026-09-29 — awaiting tagged release
https://github.com/python/cpython/pull/157580Vendor Advisories for CVE-2026-12345(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(3)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | python3-13-main-3.13.16-1.hum1 | 2026-10-03 | redhat |
| redhat | python3-12-main-3.12.15-1.hum1 | 2026-10-02 | redhat |
| redhat | python3-14-main-3.14.8-1.hum1 | 2026-10-02 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(3)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 19× in last 7d / 19× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-10-03 23:25 UTCEG score recompute
- 2026-10-03 23:25 UTCVendor advisory
- 2026-10-03 14:25 UTCEPSS rescore
- 2026-10-03 01:22 UTCEG score recompute
- 2026-10-03 01:22 UTCVendor advisory
- 2026-10-03 01:10 UTCEG score recompute
- 2026-10-03 01:10 UTCVendor advisory
- 2026-10-02 19:36 UTCEG score recompute
- 2026-10-01 21:33 UTCEG score recompute
- 2026-10-01 19:49 UTCEPSS rescore
- 2026-09-30 23:31 UTCEG score recompute
- 2026-09-30 21:18 UTCEG score recompute
- 2026-09-30 20:28 UTCEG score recompute
- 2026-09-30 15:02 UTCEPSS rescore
- 2026-09-29 19:21 UTCEG score recompute
- 2026-09-29 18:51 UTCEG score recompute
- 2026-09-29 18:26 UTCEG score recompute
- 2026-09-29 17:49 UTCEG score recompute
- 2026-09-29 17:48 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-12345?
When was CVE-2026-12345 disclosed?
Is CVE-2026-12345 actively exploited?
What is the CVSS score of CVE-2026-12345?
How do I remediate CVE-2026-12345?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-12345
Is Your Infrastructure Affected by CVE-2026-12345?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.