CVE-2026-115791: Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction
CVE-2026-115791 affects 250 listed versions of Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Python
250 of 250 listed versions are affected. Fixed in 3.16.0. The newest release, 3.15.2, is affected too.
3.15.2 3.15.1 3.15.0 3.15.0rc3 3.15.0rc2 3.15.0rc1 3.14.11 3.14.10 3.14.9 3.14.8 3.14.7 3.14.6 3.14.5 3.14.5rc1 3.14.4 3.14.3 3.14.2 3.14.1 3.14.0 3.14.0rc2 3.13.18 3.13.17 3.13.16 3.13.15 3.13.14 3.13.13 3.13.12 3.13.11 3.13.10 3.13.9 3.13.8 3.13.7 3.13.6 3.13.5 3.13.4 3.12.16 3.12.15 3.12.14 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.2 3.11.18 3.11.17 3.11.16 3.11.15 3.11.14 3.11.13 3.11.12 3.11.11 3.11.10 3.11.9 and 190 more
What it is
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.
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 (Psf)
Published by Psf on 10 November 2026. Last changed 11 November 2026.
Sources
Check one version you run: look CVE-2026-115791 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.