CVE-2026-12345
Last modified
CVE-2026-12345 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | < 3.12.15; >= 3.13.0, < 3.13.18; >= 3.14.0, < 3.14.9; >= 3.15.0a1, < 3.15.0rc3 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-12345?
How severe is CVE-2026-12345?
How do I fix CVE-2026-12345?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-123431Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123432Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123435Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123437Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123438Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123439Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123460Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2026-123461Missing Authorization vulnerability in PluginUs.Net FOX wooc…5.3
- CVE-2026-123462Missing Authorization vulnerability in myCred myCred mycred …5.3
- CVE-2026-123463Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2026-123464Improper Neutralization of Input During Web Page Generation …6.5
- CVE-2026-123465Exposure of Sensitive System Information to an Unauthorized …7.5
Are you affected by CVE-2026-12345?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
