StraitOfVuln
Latest / CVE-2026-115791

CVE-2026-115791

MediumCVSS 5.3 (v4.0)Awaiting Analysis
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-115791
Published / updated
10 Nov 2026, 17:17 UTC · last modified 11 Nov 2026, 05:19 UTC
Severity
MEDIUM
CVSS score
5.3 · v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · Attack vector: Local
Affected vendor
Python Software Foundation
Affected products
CPython
Affected versions
CPython: before 3.16.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
CPython 3.16.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.17% probability of exploitation in the next 30 days · 6% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
cna@python.org