Vulnerability
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.
19 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
AZL-113326
CVE-2026-115791 affecting package python-py 1.11.0-1
-
AZL-113332
CVE-2026-115791 affecting package python3 3.12.16-2
-
AZL-113639
CVE-2026-115791 affecting package tensorflow 2.16.1-11
- CGA-566g-mgqj-88qj
- CGA-5j76-g6pq-2fgm
- CGA-67jv-vvcr-54qc
- CGA-8jxh-6fjf-v7j6
- CGA-cmff-4q6c-5gmp
- CGA-fhr7-xmmw-g2gw
- CGA-h3rx-v27j-c92q
- CGA-j9c4-pjxq-cfhm
- CGA-jw39-86wq-wxmc
- CGA-rpr5-c47j-c8x6
- CGA-w3qh-5cfh-pf6q
- CGA-x76g-6g9h-2grm
-
CNA-CVE-2026-115791
Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction
-
DEBIAN-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…
-
SUSEVEX-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…
-
UBUNTU-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…