CVE-2026-23949 Details
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.
A Zip Slip path traversal vulnerability has been identified in the jaraco.context package, specifically in the tarball() function. This vulnerability affects versions 5.2.0 prior to 6.1.0. When malicious tar archives are processed, the vulnerability may allow attackers to extract files outside the intended extraction directory. The issue arises from the strip_first_component filter, which improperly handles path components and allows traversal sequences, leading to extraction of files from sensitive locations such as the root or home directories. Additionally, this vulnerability is present in nested tarball scenarios, where inner tar files can exploit the same traversal issues. The vulnerable behavior can be observed in the context of the Python packaging tool setuptools, which vendors the jaraco.context package and may inadvertently introduce this vulnerability when handling tarball extractions.
Users can update to jaraco.context version 6.1.0, which addresses the vulnerability by implementing proper extraction safety. For those using setuptools, be aware that this version is also available through the Python Package Index (PyPI).
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jaraco jaraco.context | >= 5.2.0, < 6.1.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 11, 2026 | Initial Analysis | [email protected] |
| Jan 20, 2026 | New CVE Received | [email protected] |