CVE-2026-23949 jaraco.context Has a Path Traversal Vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi jaraco-context(PyPI) | >= 5.2.0, < 6.1.0 | 6.1.0 |
| pypi jaraco-context(PyPI) | = 5.2.0 | No fix listed |
| pypi jaraco-context(PyPI) | = 5.3.0 | No fix listed |
| pypi jaraco-context(PyPI) | = 6.0.0 | No fix listed |
| pypi jaraco-context(PyPI) | = 6.0.1 | No fix listed |
| pypi jaraco-context(PyPI) | = 6.0.2 | No fix listed |
| jaraco.context | = >= 5.2.0, < 6.1.0 | No fix listed |
| pypi jaraco.context(PyPI) | >= 5.2.0, < 6.1.0 | 6.1.0 |
| debian/jaraco.context(Debian:13) | < 6.0.1-1+deb13u1 | 6.0.1-1+deb13u1 |
| debian/jaraco.context(Debian:13) | = 6.0.1-1 | No fix listed |
| debian/jaraco.context(Debian:14) | < 6.0.1-2 | 6.0.1-2 |
| debian/jaraco.context(Debian:14) | = 6.0.1-1 | No fix listed |
| debian/setuptools(Debian:13) | All versions | No fix listed |
| debian/setuptools(Debian:13) | = 78.1.1-0.1 | No fix listed |
| debian/setuptools(Debian:13) | = 79.0.0-1 | No fix listed |
| debian/setuptools(Debian:13) | = 80.1.0-1 | No fix listed |
| debian/setuptools(Debian:13) | = 80.9.0-1 | No fix listed |
| debian/setuptools(Debian:13) | = 80.9.0-2 | No fix listed |
| debian/setuptools(Debian:13) | = 84.0.0-1 | No fix listed |
| debian/setuptools(Debian:13) | = 84.0.0-2 | No fix listed |
| debian/setuptools(Debian:13) | = 84.2.0-1 | No fix listed |
| debian/setuptools(Debian:14) | < 84.0.0-2 | 84.0.0-2 |
| debian/setuptools(Debian:14) | = 78.1.1-0.1 | No fix listed |
| debian/setuptools(Debian:14) | = 79.0.0-1 | No fix listed |
| debian/setuptools(Debian:14) | = 80.1.0-1 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/setuptools(Debian:14) | = 80.9.0-1 | No fix listed |
| debian/setuptools(Debian:14) | = 80.9.0-2 | No fix listed |
| debian/setuptools(Debian:14) | = 84.0.0-1 | No fix listed |
| jaraco.context | >= 5.2.0, < 6.1.0 | 6.1.0 |
References
- https://github.com/jaraco/jaraco.context/security/advisories/GHSA-58pv-8j8x-9vj2 exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/jaraco/jaraco.context/commit/7b26a42b525735e4085d2e994e13802ea339d5f9 patch
- github.com product
- https://github.com/jaraco/jaraco.context/blob/main/jaraco/context/__init__.py#L74-L91 patch
- https://github.com/pypa/setuptools/blob/main/setuptools/_vendor/jaraco/context.py#L55-L76 patch
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2026-23949 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2431026 issue-tracking
- www.cve.org
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking