CVE-2026-23949

NameCVE-2026-23949
Descriptionjaraco.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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1126078, 1126729

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jaraco.context (PTS)bookworm4.2.0-1fixed
trixie6.0.1-1vulnerable
forky, sid6.0.1-2fixed
setuptools (PTS)bullseye52.0.0-4fixed
bullseye (security)52.0.0-4+deb11u2fixed
bookworm66.1.1-1+deb12u2fixed
forky, sid, trixie78.1.1-0.1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jaraco.contextsourcebookworm(not affected)
jaraco.contextsource(unstable)6.0.1-21126078
setuptoolssourcebullseye(not affected)
setuptoolssourcebookworm(not affected)
setuptoolssource(unstable)(unfixed)1126729

Notes

[trixie] - jaraco.context <no-dsa> (Minor issue)
[bookworm] - jaraco.context <not-affected> (Vulnerable code not present)
[trixie] - setuptools <no-dsa> (Minor issue)
[bookworm] - setuptools <not-affected> (Vulnerable code not present, bundled jaraco.context too old)
[bullseye] - setuptools <not-affected> (Vulnerable code not present, bundled jaraco.context too old)
https://github.com/jaraco/jaraco.context/security/advisories/GHSA-58pv-8j8x-9vj2
Introduced with: https://github.com/jaraco/jaraco.context/commit/e13fc7f2b379683c326153a3d6f4d2800f812fd0 (v5.2.0)
Fixed by: https://github.com/jaraco/jaraco.context/commit/7b26a42b525735e4085d2e994e13802ea339d5f9 (v6.1.0)
setuptools includes a bundled version

Search for package or bug name: Reporting problems