CVE-2026-23949

jaraco.context, an open-source software package that provides some useful decorators and context managers, has a Zip Slip path traversal vulnerability in the `jaraco.context.tarball()` function starting in version 5.2.0 and prior to version 6.1.0. The vulnerability may allow attackers to extract files outside the intended extraction directory when malicious tar archives are processed. The strip_first_component filter splits the path on the first `/` and extracts the second component, while allowing `../` sequences. Paths like `dummy_dir/../../etc/passwd` become `../../etc/passwd`. Note that this suffers from a nested tarball attack as well with multi-level tar files such as `dummy_dir/inner.tar.gz`, where the inner.tar.gz includes a traversal `dummy_dir/../../config/.env` that also gets translated to `../../config/.env`. Version 6.1.0 contains a patch for the issue.
Configurations

Configuration 1 (hide)

cpe:2.3:a:jaraco:jaraco.context:*:*:*:*:*:python:*:*

History

11 Mar 2026, 23:12

Type Values Removed Values Added
First Time Jaraco jaraco.context
Jaraco
CPE cpe:2.3:a:jaraco:jaraco.context:*:*:*:*:*:python:*:*
References () https://github.com/jaraco/jaraco.context/blob/main/jaraco/context/__init__.py#L74-L91 - () https://github.com/jaraco/jaraco.context/blob/main/jaraco/context/__init__.py#L74-L91 - Patch
References () https://github.com/jaraco/jaraco.context/commit/7b26a42b525735e4085d2e994e13802ea339d5f9 - () https://github.com/jaraco/jaraco.context/commit/7b26a42b525735e4085d2e994e13802ea339d5f9 - Patch
References () https://github.com/jaraco/jaraco.context/security/advisories/GHSA-58pv-8j8x-9vj2 - () https://github.com/jaraco/jaraco.context/security/advisories/GHSA-58pv-8j8x-9vj2 - Exploit, Mitigation, Vendor Advisory
References () https://github.com/pypa/setuptools/blob/main/setuptools/_vendor/jaraco/context.py#L55-L76 - () https://github.com/pypa/setuptools/blob/main/setuptools/_vendor/jaraco/context.py#L55-L76 - Patch
Summary
  • (es) jaraco.context, un paquete de software de código abierto que proporciona algunos decoradores y gestores de contexto útiles, tiene una vulnerabilidad de recorrido de ruta Zip Slip en la función `jaraco.context.tarball()` a partir de la versión 5.2.0 y anterior a la versión 6.1.0. La vulnerabilidad puede permitir a los atacantes extraer archivos fuera del directorio de extracción previsto cuando se procesan archivos tar maliciosos. El filtro strip_first_component divide la ruta en la primera barra «/» y extrae el segundo componente, al tiempo que permite secuencias «../». Las rutas como «dummy_dir/../../etc /passwd» se convierten en «../../etc /passwd». Tenga en cuenta que esto también sufre un ataque de archivo tar anidado con archivos tar de varios niveles, como `dummy_dir/inner.tar.gz`, donde inner.tar.gz incluye un recorrido `dummy_dir/../../config/.env` que también se traduce a `../../config/.env`. La versión 6.1.0 contiene un parche para el problema.

20 Jan 2026, 01:15

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-20 01:15

Updated : 2026-03-11 23:12


NVD link : CVE-2026-23949

Mitre link : CVE-2026-23949

CVE.ORG link : CVE-2026-23949


JSON object : View

Products Affected

jaraco

  • jaraco.context
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')