CVE-2026-115791

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

No CVSS.

Configurations

No configuration.

History

11 Nov 2026, 01:17

Type Values Removed Values Added
References
  • () http://www.openwall.com/lists/oss-security/2026/11/10/30 -

10 Nov 2026, 18:17

Type Values Removed Values Added
CWE CWE-829

10 Nov 2026, 17:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-10 17:17

Updated : 2026-11-11 05:19


NVD link : CVE-2026-115791

Mitre link : CVE-2026-115791

CVE.ORG link : CVE-2026-115791


JSON object : View

Products Affected

No product.

CWE
CWE-829

Inclusion of Functionality from Untrusted Control Sphere