Skip to content
Noroxi
CVE.org (no NVD analysis yet)· CNA PSF

CVE-2026-12345: Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory

Noroxi assessment

Priority: Monitor (action score 23/100)

  • Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.34% (FIRST EPSS).
  • Someone with local access to the system can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Python Software Foundation CPython 3.12.15, 3.13.18, 3.14.9; azl3 python3 3.12.14-2 on Azure Linux 3.0 3.12.16-1.

Low priority for now. Upgrade to Python Software Foundation CPython 3.12.15, 3.13.18, 3.14.9; azl3 python3 3.12.14-2 on Azure Linux 3.0 3.12.16-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

MediumCVSS 5.9 · v4.0—Proof of concept Fix available
Published
Sep 29, 2026
Updated
Oct 26, 2026
EPSS
0.3% · 28th percentile

Report tools

JSON

Action score

23

Monitor

Low priority for now.

CVSS
23 / 40 · 5.9 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · PSF
5.9
NVD has not scored this yet; the score shown is the CNA’s.

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

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2026-12345

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

—

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PSF). Independent of NVD's CPE analysis and usually ahead of it.

  • Python Software Foundation CPython

    • before 3.12.15affected · python
    • 3.13.0 and later · before 3.13.18affected · python
    • 3.14.0 and later · before 3.14.9affected · python
    • 3.15.0a1 and later · before 3.15.0rc3affected · python

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8platform-pythonbefore 3.6.8-79.el8_10.alma.13.6.8-79.el8_10.alma.1
AlmaLinux:8platform-python-debugbefore 3.6.8-79.el8_10.alma.13.6.8-79.el8_10.alma.1
AlmaLinux:8platform-python-develbefore 3.6.8-79.el8_10.alma.13.6.8-79.el8_10.alma.1
AlmaLinux:8python3-idlebefore 3.6.8-79.el8_10.alma.13.6.8-79.el8_10.alma.1
AlmaLinux:8python3-libsbefore 3.6.8-79.el8_10.alma.13.6.8-79.el8_10.alma.1
AlmaLinux:8python3-testbefore 3.6.8-79.el8_10.alma.13.6.8-79.el8_10.alma.1
AlmaLinux:8python3-tkinterbefore 3.6.8-79.el8_10.alma.13.6.8-79.el8_10.alma.1
AlmaLinux:9python-unversioned-commandbefore 3.9.25-7.el9_8.63.9.25-7.el9_8.6
AlmaLinux:9python3before 3.9.25-7.el9_8.63.9.25-7.el9_8.6
AlmaLinux:9python3-debugbefore 3.9.25-7.el9_8.63.9.25-7.el9_8.6
AlmaLinux:9python3-develbefore 3.9.25-7.el9_8.63.9.25-7.el9_8.6
AlmaLinux:9python3-idlebefore 3.9.25-7.el9_8.63.9.25-7.el9_8.6
AlmaLinux:9python3-libsbefore 3.9.25-7.el9_8.63.9.25-7.el9_8.6
AlmaLinux:9python3-testbefore 3.9.25-7.el9_8.63.9.25-7.el9_8.6
AlmaLinux:9python3-tkinterbefore 3.9.25-7.el9_8.63.9.25-7.el9_8.6
Alpine:v3.21python3before 3.12.16-r03.12.16-r0
Alpine:v3.24python3before 3.14.10-r03.14.10-r0
Debian:12pypy3from 0—
Debian:12python3.11from 0—
Debian:13python3.13from 0—
Debian:14python3.14before 3.14.9-13.14.9-1
Debian:14python3.15before 3.15.0~rc3-13.15.0~rc3-1
openSUSE:Tumbleweedpython315before 3.15.0-1.13.15.0-1.1
Red Hat:enterprise_linux:8::appstreamplatform-pythonbefore 0:3.6.8-79.el8_100:3.6.8-79.el8_10

+43

Other highest-scoring records for the same primary product.

  • CVE-2026-115557Distrust compromised intermediate certificates in ssl module
    37Monitor
  • CVE-2025-4517Arbitrary writes via tarfile realpath overflow
    37Monitor
  • CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts
    36Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2026-87910Sep 11, 2026 · tarfile hardlink fallback ignores custom extraction filter rejection via None
    22Monitor
  • ← EarlierCVE-2026-82049Sep 14, 2026 · tarfile extraction filters allow file modification and content disclosure via hard link to symlink
    33Monitor
  • Later →CVE-2026-19553Sep 30, 2026 · SSLContext.wrap_bio() missing validation of server_hostname parameter
    30Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Python Software Foundation CPython3.12.15Vendor (CNA)
Python Software Foundation CPython3.13.18Vendor (CNA)
Python Software Foundation CPython3.14.9Vendor (CNA)
Python Software Foundation CPython3.15.0rc3Vendor (CNA)
azl3 python3 3.12.14-2 on Azure Linux 3.03.12.16-1 · Release NotesMicrosoft (MSRC)
almalinux:platform-python3.6.8-79.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:platform-python-debug3.6.8-79.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:platform-python-devel3.6.8-79.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python-unversioned-command3.9.25-7.el9_8.6 · AlmaLinux:9Package registry (OSV)
almalinux:python33.9.25-7.el9_8.6 · AlmaLinux:9Package registry (OSV)
almalinux:python3-debug3.9.25-7.el9_8.6 · AlmaLinux:9Package registry (OSV)
almalinux:python3-devel3.9.25-7.el9_8.6 · AlmaLinux:9Package registry (OSV)
almalinux:python3-idle3.6.8-79.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-libs3.6.8-79.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-test3.6.8-79.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-tkinter3.6.8-79.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
alpine:python33.12.16-r0 · Alpine:v3.21Package registry (OSV)
alpine:python33.14.10-r0 · Alpine:v3.24Package registry (OSV)
debian:python3.143.14.9-1 · Debian:14Package registry (OSV)
debian:python3.153.15.0~rc3-1 · Debian:14Package registry (OSV)
opensuse:python3153.15.0-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:python-unversioned-command0:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python30:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python3-debug0:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python3-devel0:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python3-idle0:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python3-libs0:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python3-test0:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python3-tkinter0:3.14.8-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:python3.120:3.12.15-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)

+12

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:02026-08-14

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. First PoC-47 d
  2. Published
  3. Fix recordedsame day
  4. TodayNov 11, 2026+42 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-8204915 days aparttarfile extraction filters allow file modification and content disclosure via hard link to symlink
    33Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
Integrity
Availability
Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
X

CVSS vector

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/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

nvd-secondary

Change log

  1. Exploit maturitynone → poc
  2. Exploit maturity— → none
  3. Fix✗ → ✓
  4. SSVC exploitation— → none

For records you follow, these changes also arrive as notifications. →

References

All records