Medium severityNVD Advisory· Published Sep 29, 2026· Updated Nov 19, 2026
CVE-2026-12345
CVE-2026-12345
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
16- osv-coords15 versionspkg:bitnami/libpythonpkg:bitnami/pythonpkg:bitnami/python-minpkg:rpm/almalinux/platform-pythonpkg:rpm/almalinux/platform-python-debugpkg:rpm/almalinux/platform-python-develpkg:rpm/almalinux/python-unversioned-commandpkg:rpm/almalinux/python3pkg:rpm/almalinux/python3-debugpkg:rpm/almalinux/python3-develpkg:rpm/almalinux/python3-idlepkg:rpm/almalinux/python3-libspkg:rpm/almalinux/python3-testpkg:rpm/almalinux/python3-tkinterpkg:rpm/opensuse/python315&distro=openSUSE%20Tumbleweed
< 3.12.16+ 14 more
- (no CPE)range: < 3.12.16
- (no CPE)range: < 3.12.16
- (no CPE)range: < 3.12.16
- (no CPE)range: < 3.6.8-79.el8_10.alma.1
- (no CPE)range: < 3.6.8-79.el8_10.alma.1
- (no CPE)range: < 3.6.8-79.el8_10.alma.1
- (no CPE)range: < 3.9.25-7.el9_8.6
- (no CPE)range: < 3.9.25-7.el9_8.6
- (no CPE)range: < 3.9.25-7.el9_8.6
- (no CPE)range: < 3.9.25-7.el9_8.6
- (no CPE)range: < 3.6.8-79.el8_10.alma.1
- (no CPE)range: < 3.6.8-79.el8_10.alma.1
- (no CPE)range: < 3.6.8-79.el8_10.alma.1
- (no CPE)range: < 3.6.8-79.el8_10.alma.1
- (no CPE)range: < 3.15.0-1.1
Patches
Vulnerability mechanics
References
11- www.openwall.com/lists/oss-security/2026/09/29/40nvd
- github.com/python/cpython/commit/0478b52788117db4b831b3efd648f56b777628aanvd
- github.com/python/cpython/commit/06ef3d43fdaf4da97af12fa694b4886092c4b970nvd
- github.com/python/cpython/commit/458e7134a5af7f86aee9d21b51cf499b41aa4420nvd
- github.com/python/cpython/commit/58ed0259cae509a19138795df302fe60b544dc74nvd
- github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538dnvd
- github.com/python/cpython/commit/aa17c688d2c160969f2c8963f4454cdd139808e7nvd
- github.com/python/cpython/commit/c39b52d00b42200aaadff679e2fe3f1006d57c58nvd
- github.com/python/cpython/commit/e1f3590f155c6d66007e958c98c9d69316551993nvd
- github.com/python/cpython/issues/157579nvd
- github.com/python/cpython/pull/157580nvd
News mentions
0No linked articles in our index yet.