{"id":"CVE-2026-12345","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-12345","generatedAt":"2026-10-28T02:59:08.076Z","title":"The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition.","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.","published":"2026-09-29T18:17:15.000Z","lastModified":"2026-10-26T01:17:16.000Z","status":"Awaiting Analysis","sourceIdentifier":"cna@python.org","cvss":{"version":"4.0","score":5.9,"severity":"MEDIUM","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/M"},"cwe":["CWE-59"],"affected":[],"epss":{"score":0.00344,"percentile":0.27688,"date":"2026-10-26","history":[{"date":"2026-09-30","score":0.0018,"percentile":0.06801}]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.34%). Track it; it rarely justifies an emergency change on its own."},"changes":[{"kind":"new","label":"New CVE","at":"2026-09-29T18:17:15.000Z","detail":{"score":"5.9","severity":"MEDIUM","publishedAt":"2026-09-29T18:17:14.707Z"},"summary":"New CVE, medium severity (CVSS 5.9)."}],"references":[{"url":"https://github.com/python/cpython/commit/0478b52788117db4b831b3efd648f56b777628aa","source":"cna@python.org"},{"url":"https://github.com/python/cpython/commit/06ef3d43fdaf4da97af12fa694b4886092c4b970","source":"cna@python.org"},{"url":"https://github.com/python/cpython/commit/458e7134a5af7f86aee9d21b51cf499b41aa4420","source":"cna@python.org"},{"url":"https://github.com/python/cpython/commit/58ed0259cae509a19138795df302fe60b544dc74","source":"cna@python.org"},{"url":"https://github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538d","source":"cna@python.org"},{"url":"https://github.com/python/cpython/commit/c39b52d00b42200aaadff679e2fe3f1006d57c58","source":"cna@python.org"},{"url":"https://github.com/python/cpython/commit/e1f3590f155c6d66007e958c98c9d69316551993","source":"cna@python.org"},{"url":"https://github.com/python/cpython/issues/157579","source":"cna@python.org"},{"url":"https://github.com/python/cpython/pull/157580","source":"cna@python.org"},{"url":"http://www.openwall.com/lists/oss-security/2026/09/29/40","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-12345","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}