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
“—” beside the score: it is equal to the CVSS score beside it.
This medium-severity CVE scores 5.9 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.3% (27th percentile of EPSS-scored CVEs). No GitHub Security Advisory CVSS is on record for this CVE.
Also known asEUVD-2026-89183 (ENISA EUVD)Source: ENISA EUVD
- 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/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity59% × 45%Impact severity (EG Severity): CVSS 5.9 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation0.3% × 40%FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.Automatability0% × 15%CISA's SSVC Automatable value: no (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at every mission impact level.Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 0.3%
- EPSS %ILE
- 27th
- KEV
- Not listed
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (5.9): severity, escalated by confirmed exploitation. This CVE's 5.9 is its impact severity (EG Severity), not escalated.
- EG Severity
- 5.9 MEDIUMCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.a secondary CVSS source · CVSS v3.0 or v3.1
- EG Likelihood
- 0.3% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-10-28). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Track at medium mission impactTrack at every mission impact level.CISA BOD 26-04: 60 days if the affected system is publicly exposed; Fix on system upgrade if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track 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). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)60 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
September 29, 2026
Last Modified
October 26, 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(6)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:89742Red Hat Product SecurityHigh
Red Hat Security Advisory: python3.9 security update
- RHSA-2026:85239Red Hat Product SecurityHigh
Red Hat Security Advisory: python3 security update
- CVE-2026-12345Microsoft Security Response Center (MSRC)Low
Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory
- RHSA-2026:75119Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2026:74922Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2026:74870Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Patch Availability(5)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| redhat | python3.9-0:3.9.25-7.el9_8.6 | 2026-10-26 | redhat |
| redhat | python3-0:3.6.8-79.el8_10 | 2026-10-19 | redhat |
| 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.
Affected Packages
(8 across 3 ecosystems)
Debian:14(4)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| pypy3 | 7.3.19+dfsg-2 ... 8.0.0+dfsg-1 (13 versions) |
| — |
| python3.13 | 3.13.11-1 ... 3.13.9-1 (9 versions) |
| — |
| python3.14 | 3.14.0-1 ... 3.14.8-1 (30 versions) |
| — |
| python3.15 | 3.15.0-1 ... 3.15.0~rc3-2 (15 versions) |
| — |
Debian:12(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| pypy3 | 7.3.11+dfsg-2 ... 8.0.0+dfsg-1 (31 versions) |
| — |
| python3.11 | 3.11.2-6 ... 3.11.9-1 (29 versions) |
| — |
Debian:13(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| pypy3 | 7.3.19+dfsg-2 ... 8.0.0+dfsg-1 (13 versions) |
| — |
| python3.13 | 3.13.11-1 ... 3.13.9-1 (14 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 9× in last 7d / 65× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. 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. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
- 2026-11-01 16:33 UTCEPSS rescoreEPSS 0.3% · 27th percentile
- 2026-10-31 16:32 UTCEPSS rescoreEPSS 0.3% · 27th percentile
- 2026-10-30 16:33 UTCEPSS rescoreEPSS 0.3% · 27th percentile
- 2026-10-29 16:32 UTCEPSS rescoreEPSS 0.3% · 27th percentile
- 2026-10-29 15:52 UTCEG score recompute
- 2026-10-29 15:52 UTCVendor advisory
- 2026-10-28 16:31 UTCEPSS rescoreEPSS 0.3% · 27th percentile
- 2026-10-27 16:31 UTCEPSS rescoreEPSS 0.3% · 27th percentile
- 2026-10-26 16:30 UTCEPSS rescoreEPSS 0.3% · 27th percentile
- 2026-10-26 01:26 UTCEG score recompute
- 2026-10-26 01:26 UTCVendor advisory
- 2026-10-26 01:16 UTCEG score recompute
- 2026-10-26 01:16 UTCVendor advisory
- 2026-10-25 16:32 UTCEPSS rescoreEPSS 0.3% · 24th percentile
- 2026-10-25 14:49 UTCEG score recompute
- 2026-10-24 16:32 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-23 16:31 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-22 16:33 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-22 01:27 UTCEG score recompute
- 2026-10-22 01:27 UTCVendor advisory
- 2026-10-22 00:52 UTCEG score recompute
- 2026-10-22 00:52 UTCVendor advisory
- 2026-10-21 16:32 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-20 16:32 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-19 16:31 UTCEPSS rescoreEPSS 0.2% · 7th percentile
Show 56 moreShow fewer
- 2026-10-18 16:31 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-18 05:04 UTCEG score recompute
- 2026-10-17 16:33 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-16 16:40 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-15 16:31 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-14 16:32 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-13 16:33 UTCEPSS rescoreEPSS 0.2% · 7th percentile
- 2026-10-12 16:36 UTCEG score recompute
- 2026-10-12 16:33 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-11 21:23 UTCVendor advisory
- 2026-10-11 20:12 UTCEG score recompute
- 2026-10-11 18:24 UTCEG score recompute
- 2026-10-11 14:58 UTCEG score recompute
- 2026-10-11 13:48 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-10 23:20 UTCEG score recompute
- 2026-10-10 23:20 UTCVendor advisory
- 2026-10-10 19:59 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-10 01:18 UTCEG score recompute
- 2026-10-10 01:18 UTCVendor advisory
- 2026-10-10 01:15 UTCEG score recompute
- 2026-10-10 01:15 UTCVendor advisory
- 2026-10-09 20:06 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-09 14:02 UTCEG score recompute
- 2026-10-09 14:02 UTCVendor advisory
- 2026-10-08 17:11 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-08 15:55 UTCEG score recompute
- 2026-10-08 15:55 UTCVendor advisory
- 2026-10-07 23:47 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-07 16:24 UTCVendor advisory
- 2026-10-06 17:31 UTCEG score recompute
- 2026-10-06 17:31 UTCVendor advisory
- 2026-10-06 15:17 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-05 19:29 UTCEG score recompute
- 2026-10-05 19:29 UTCVendor advisory
- 2026-10-05 17:42 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-04 23:21 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 2026-10-04 21:27 UTCVendor advisory
- 2026-10-03 23:25 UTCEG score recompute
- 2026-10-03 23:25 UTCVendor advisory
- 2026-10-03 14:25 UTCEPSS rescoreEPSS 0.2% · 6th percentile
- 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 rescoreEPSS 0.2% · 6th percentile
- 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 rescoreEPSS 0.2% · 6th percentile
- 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 recomputeFirst assessed: 5.9 MEDIUM
- 2026-09-29 17:48 UTCMITRE cvelistV5first tracked
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:14:python3.15 · Debian:14:python3.14
Frequently asked(5)
What is CVE-2026-12345?
When was the CVE record for CVE-2026-12345 published?
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
See which npm, PyPI, Go, and Maven packages are affected by 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.