cve.bz

CVE-2026-23949 jaraco jaraco.context: Path traversal

8.6 highExploit referenceEPSS 0.6%Fix available

High (8.6) in jaraco jaraco.context. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in jaraco-context 6.1.0.

On this page
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.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-01-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-23949 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-23949?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-23949?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-23949 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jaraco:jaraco.contextfrom 5.2.0 before 6.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-58pv-8j8x-9vj2PyPIjaraco-context>=5.2.0 <6.1.06.1.0
PYSEC-2026-1469PyPIjaraco-context>=5.2.0 <6.1.06.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13jaraco.context6.0.1-1+deb13u1DEBIAN-CVE-2026-23949
Debian13setuptoolsno fix listedDEBIAN-CVE-2026-23949
Debian14jaraco.context6.0.1-2DEBIAN-CVE-2026-23949
Debian14setuptools84.0.0-2DEBIAN-CVE-2026-23949
Ubuntu25.10jaraco.context6.0.1-1ubuntu0.1UBUNTU-CVE-2026-23949 USN-7979-1
SUSELinux Enterprise Module for Python 3 15 SP7python313-setuptools72.1.0-150700.3.6.1SUSE-SU-2026:5223-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-jaraco.context5.3.0-160000.3.1SUSE-SU-2026:20139-1
openSUSELeap 16.0python-jaraco.context5.3.0-160000.3.1openSUSE-SU-2026:20095-1
openSUSETumbleweedpython-jaraco.context6.1.0-1.1openSUSE-SU-2026:10077-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat products that utilize `jaraco.context` versions prior to 6.1.0 and process untrusted tar archives. A path traversal flaw in the `jaraco.context.tarball()` function allows attackers to extract files outside the intended directory due to improper handling of `../` sequences, including in nested tarballs. This could lead to arbitrary file write.

Red Hat's mitigation

The vulnerability arises from processing untrusted tar archives. To mitigate the risk, Red Hat recommends avoiding the processing of tar archives from untrusted sources. If processing untrusted archives is unavoidable, ensure that the environment where `jaraco.context.tarball()` is used is isolated and has minimal privileges.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-23949.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON