CVE-2026-12345
Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory
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
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-12345 divulgada · CVSS 5.9 (CNA) | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: PoC-in-GitHub | Registro visto por primera vez en PoC-in-GitHub | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
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.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
CPython |
Corregida | 3.12.15, 3.13.18, 3.14.9, 3.15.0rc3 | — | — |
3.12.153.13.183.14.93.15.0rc3Arsenal público
Ver los 1 repositorios de GitHub
Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.
https://github.com/python/cpython/pull/157580https://github.com/python/cpython/commit/5c20517a4fc56683efe63a7751020db9573f538dhttps://github.com/python/cpython/commit/458e7134a5af7f86aee9d21b51cf499b41aa4420https://github.com/python/cpython/commit/e1f3590f155c6d66007e958c98c9d69316551993https://github.com/python/cpython/commit/06ef3d43fdaf4da97af12fa694b4886092c4b970https://github.com/python/cpython/commit/58ed0259cae509a19138795df302fe60b544dc74https://github.com/python/cpython/commit/0478b52788117db4b831b3efd648f56b777628aahttps://github.com/python/cpython/commit/c39b52d00b42200aaadff679e2fe3f1006d57c58https://github.com/python/cpython/commit/aa17c688d2c160969f2c8963f4454cdd139808e7http://www.openwall.com/lists/oss-security/2026/09/29/40https://github.com/python/cpython/issues/157579https://github.com/zahidec0de/CVE-2026-12345-pocLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
