CVE-2026-12345: fallo de gravedad media en Python Software Foundation CPython
Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory
Publicada el · Actualizada el
33Vexday Risk Score
Sin señal de explotación. Ella tiene prueba de concepto pública.
ssvc Attendcvss 5.9epss 0.2%
de la publicación al arma0 días
Publicada en NVD29 sept
1ª PoC14 ago
probabilidad de explotación
0.2%top 93% de las CVE
explotación observada
noninguna fuente lo reporta
1 exploit(s) público(s)
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.
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
Productos afectados
Python Software Foundation · CPythonPoCs públicas encontradas — 1
githubgithub.com/zahidec0de/CVE-2026-12345-poc★ 0⚠ Recursos públicos, para evaluar la exposición de sistemas que controlas o estás autorizado a probar. Prueba solo con autorización.
CVEs relacionadas — Python Software Foundation CPython
En el mismo producto, de las más peligrosas a las menos.
CVE-2024-7592HIGHQuadratic complexity parsing cookies with backslashesEPSS 2.3%CVE-2024-6232HIGHRegular-expression DoS when parsing TarFile headersEPSS 2.2%CVE-2024-12254HIGHUnbounded memory buffering in SelectorSocketTransport.writelines()EPSS 1.9%CVE-2025-13836MEDIUMExcessive read buffering DoS in http.clientEPSS 1.6%CVE-2025-0938MEDIUMURL parser allowed square brackets in domain namesEPSS 1.6%CVE-2025-4517CRITICALArbitrary writes via tarfile realpath overflowEPSS 1.4%
Referencias
https://github.com/python/cpython/commit/06ef3d43fdaf4da97af12fa694b4886092c4b970https://github.com/python/cpython/commit/458e7134a5af7f86aee9d21b51cf499b41aa4420https://github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538dhttps://github.com/python/cpython/commit/e1f3590f155c6d66007e958c98c9d69316551993https://github.com/python/cpython/issues/157579https://github.com/python/cpython/pull/157580http://www.openwall.com/lists/oss-security/2026/09/29/40