CVE-2026-115791
Python Software Foundation CPython code execution via stdlib gzip/tarfile/zipfile CLIs
A local attacker with a low-privilege account can get a user to run a planted script with that user's privileges.
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Publicada | CVE-2026-115791 divulgada · CVSS 5.3 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The Python standard library's gzip, tarfile, and zipfile command-line tools can be tricked into running attacker-supplied code. An attacker who can get a crafted archive extracted in the current directory, with a user taking action to run it, can have a malicious script such as traceback.py run locally with the user's privileges, which requires local access and low-privilege login.
Descripción original del registro (PSF)
When tarfile or zipfile command line interface (CLI) is used to decompress an archive, a Python script shadowing the stdlib can be created. Then if an error occurs during decompressing the next file, the newly created Python script is executed. This is especially true if the created Python is called traceback.py. The problem is that Python adds the current directory to sys.path when python -m MODULE is run, and the archive is also decompressed in the current directory. The fix removes sys.path[0] in gzip, tarfile and zipfile command line interface to prevent shadowing standard library modules from extracted files.
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.16.0 | — | — |
3.16.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://mail.python.org/archives/list/security-announce@python.org/thread/ZKKA4Q7B35JEHSDIJNZ6TYKRDQJUHDAG/https://github.com/python/cpython/pull/161706http://www.openwall.com/lists/oss-security/2026/11/10/30https://github.com/python/cpython/issues/161705Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
