CVE-2026-115791
published medium CVSS 4.0 · 5.3Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.16.0 · Other versions: unaffected | Affected | Not stated | PSF |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310aarch64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310ppc64le | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310s390x | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310x86_64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-cursesaarch64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
Show 67 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-cursesppc64le | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-cursess390x | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-cursesx86_64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-dbmaarch64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-dbmppc64le | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-dbms390x | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-dbmx86_64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-idleaarch64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-idleppc64le | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-idles390x | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-idlex86_64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-tkaarch64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-tkppc64le | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-tks390x | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-tkx86_64 | Advisory build | 3.10.22-5.1 | OPENSUSE-SU-2026:12729-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311aarch64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311ppc64le | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311s390x | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311x86_64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-32bitaarch64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-32bitppc64le | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-32bits390x | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-32bitx86_64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-cursesaarch64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-cursesppc64le | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-cursess390x | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-cursesx86_64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-dbmaarch64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-dbmppc64le | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-dbms390x | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-dbmx86_64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-idleaarch64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-idleppc64le | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-idles390x | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-idlex86_64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-tkaarch64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-tkppc64le | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-tks390x | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-tkx86_64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-x86-64-v3aarch64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-x86-64-v3ppc64le | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-x86-64-v3s390x | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-x86-64-v3x86_64 | Advisory build | 3.11.18-3.1 | OPENSUSE-SU-2026:12737-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315aarch64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315ppc64le | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315s390x | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315x86_64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-cursesaarch64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-cursesppc64le | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-cursess390x | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-cursesx86_64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-dbmaarch64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-dbmppc64le | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-dbms390x | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-dbmx86_64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-idleaarch64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-idleppc64le | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-idles390x | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-idlex86_64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-tkaarch64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-tkppc64le | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-tks390x | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-tkx86_64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-x86-64-v3aarch64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-x86-64-v3ppc64le | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-x86-64-v3s390x | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python315-x86-64-v3x86_64 | Advisory build | 3.15.2-3.1 | OPENSUSE-SU-2026:12738-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.16.0 (affected · python)Default: unaffected | PSF · cna |
Weaknesses
1- CWE-829 CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
4Provider assertions
3PSF · cna
Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 85d672f8002263bc068820876a845e31658fbe1e398988b162d88df1dc2057f3
- Ingested
- 11 Nov 2026, 05:00:49 UTC
- Source record
- Official CVE record