# CVE-2026-115791: Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-10 · Modified: 2026-11-11
- Aliases: UBUNTU-CVE-2026-115791, DEBIAN-CVE-2026-115791, CGA-566g-mgqj-88qj, CGA-w3qh-5cfh-pf6q, CGA-67jv-vvcr-54qc, CGA-5j76-g6pq-2fgm, CGA-cmff-4q6c-5gmp, CGA-fhr7-xmmw-g2gw, CGA-h3rx-v27j-c92q, CGA-j9c4-pjxq-cfhm, CGA-jw39-86wq-wxmc, CGA-rpr5-c47j-c8x6, CGA-x76g-6g9h-2grm, CGA-8jxh-6fjf-v7j6
- Record: https://cvemate.com/vulnerability/CVE-2026-115791 · JSON: https://cvemate.com/vulnerability/CVE-2026-115791/json

## Description

```text
When tarfile or zipfile command line interface (CLI) is used to

decompress an archive, a Python script shadowing the stdlib can be

created. Then if an error occurs during decompressing the next file,

the newly created Python script is executed. This is especially true

if the created Python is called traceback.py. The problem is that

Python adds the current directory to sys.path when python -m MODULE is

run, and the archive is also decompressed in the current directory.



The fix removes sys.path[0] in gzip, tarfile and zipfile command line

interface to prevent shadowing standard library modules from extracted

files.
```

## Signals

- CVSS: 5.3 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.167%, percentile 6.235%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 28)

- chainguard python-3.10 (Chainguard): All versions (No fix recorded)
- chainguard python-3.11 (Chainguard): All versions (No fix recorded)
- chainguard python-3.12 (Chainguard): All versions (No fix recorded)
- chainguard python-3.13 (Chainguard): All versions (No fix recorded)
- chainguard python-3.14 (Chainguard): All versions (No fix recorded) \| \< 3.14.10\_git20261111-r0
- chainguard python-3.15 (Chainguard): All versions (No fix recorded)
- wolfi python-3.10 (Wolfi): All versions (No fix recorded)
- wolfi python-3.11 (Wolfi): All versions (No fix recorded)
- wolfi python-3.12 (Wolfi): All versions (No fix recorded)
- wolfi python-3.13 (Wolfi): All versions (No fix recorded)
- wolfi python-3.14 (Wolfi): All versions (No fix recorded) \| \< 3.14.10\_git20261111-r0
- wolfi python-3.15 (Wolfi): All versions (No fix recorded)
- debian python3.11 (Debian): All versions (No fix recorded)
- debian python3.13 (Debian): All versions (No fix recorded)
- debian python3.14 (Debian): All versions (No fix recorded)
- debian python3.15 (Debian): All versions (No fix recorded)
- ubuntu python2.7 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.10 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.11 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.12 (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/python/cpython/issues/161705>
- <https://github.com/python/cpython/pull/161706>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/ZKKA4Q7B35JEHSDIJNZ6TYKRDQJUHDAG/>
- <http://www.openwall.com/lists/oss-security/2026/11/10/30>
- <https://ubuntu.com/security/CVE-2026-115791>
- <https://www.cve.org/CVERecord?id=CVE-2026-115791>
- <https://security-tracker.debian.org/tracker/CVE-2026-115791>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115791.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-115791>
- <https://github.com/python/cpython>

---

Data as of 2026-12-05T04:25:08.704Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
