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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jaraco | jaraco.context | >= 5.2.0, < 6.1.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jaraco.context | 6.0.1-2 | — |
| Debian 14 | setuptools | 84.0.0-2 | — |
| Debian 13 | jaraco.context | 6.0.1-1+deb13u1 | — |
| Debian 13 | setuptools | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | jaraco.context | 6.0.1-1ubuntu0.1 | USN-7979-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-jaraco.context | 5.3.0-160000.3.1 | SUSE-SU-2026:20139-1 |
| SLES 16.0 | python-jaraco.context | 5.3.0-160000.3.1 | SUSE-SU-2026:20139-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-jaraco.context | 6.1.0-1.1 | openSUSE-SU-2026:10077-1 |
| openSUSE Leap 16.0 | python-jaraco.context | 5.3.0-160000.3.1 | openSUSE-SU-2026:20095-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3 | 3.1.6-r2 | — |
| Wolfi rolling | dask-kubernetes | 2025.7.0-r6 | — |
| Wolfi rolling | datadog-agent-7.72 | 7.72.4-r7 | — |
| Wolfi rolling | datadog-agent-7.72-core-integrations | No fix yet | — |
| Wolfi rolling | datadog-agent-7.73 | 7.73.3-r3 | — |
| Wolfi rolling | datadog-agent-7.73-core-integrations | 7.73.3-r23 | — |
| Wolfi rolling | datadog-agent-7.79-core-integrations | 7.79.2-r9 | — |
| Wolfi rolling | datadog-agent-7.80 +1 | 7.80.4-r10 | — |
| Wolfi rolling | katib-earlystopping +6 | 0.19.0-r4 | — |
| Wolfi rolling | kserve-storage-controller | 0.16.0-r11 | — |
| Wolfi rolling | kubeflow-jupyter-web-app | 1.10.0-r10 | — |
| Wolfi rolling | open-webui | 0.7.2-r1 | — |
| Wolfi rolling | py3-cassandra-medusa | 0.27.0-r2 | — |
| Wolfi rolling | py3-semgrep | 1.149.0-r0 | — |
| Wolfi rolling | py3.10-ambassador +3 | 3.10.0-r19 | — |
| Wolfi rolling | py3.10-setuptools +4 | 80.10.1-r0 | — |
| Wolfi rolling | pypy-3.10 | 7.3.19-r14 | — |
| Wolfi rolling | pypy-3.11 | 7.3.20-r5 | — |
| Wolfi rolling | superset-6.0 | 6.0.0-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | jaraco-context | >= 5.2.0, < 6.1.0 | 6.1.0 | GHSA-58pv-8j8x-9vj2 |
Advisories 6
- WID-SEC-2026-3046 IBM Concert: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- WID-SEC-2026-1730 Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Jul 16, 2026
- openSUSE-SU-2026:20095-1 Security update for python-jaraco.context SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10077-1 python311-jaraco.context-6.1.0-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20139-1 Security update for python-jaraco.context SUSE / openSUSE Security Updates · Mar 23, 2026
- USN-7979-1 jaraco.context vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
References
- https://github.com/jaraco/jaraco.context/security/advisories/GHSA-58pv-8j8x-9vj2
- https://github.com/jaraco/jaraco.context/commit/7b26a42b525735e4085d2e994e13802ea339d5f9
- https://github.com/jaraco/jaraco.context/blob/main/jaraco/context/__init__.py#L74-L91
- https://github.com/pypa/setuptools/blob/main/setuptools/_vendor/jaraco/context.py#L55-L76