CVEFinder.io

CVE-2026-115791

🔶 medium
Summary

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 s

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.

CVSS Score
-
EPSS Score
0.2
Exploit Probability
Published Date
2026-11-10
First Seen: 2026-11-18
🎯 CISA SSVC Assessment Updated: Nov 10, 2026
🔍 Exploitation Status
None
No known exploits
⚙️ Automatable
NO
Requires human interaction
💥 Technical Impact
Total
Complete system compromise possible
🏆 Discovered By
Jelle Zijlstra (https://github.com/jelle-openai) (reporter) Victor Stinner (https://github.com/vstinner) (remediation developer) Ethan Furman (https://github.com/ethanfurman) (remediation reviewer) Kirill Podoprigora (https://github.com/Eclips4) (remediation reviewer) Seth Larson (https://github.com/sethmlarson) (remediation reviewer)
SSVC data provided by CISA
Last Modified 2026-11-11
Source NVD 🔗
CVSS Vector 4.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
CWE IDs (Weakness Types)

📦 Affected Products 0

No affected products information available

🔗 References 4