Ubuntu CVE Tracker
UBUNTU-CVE-2026-115791
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:14.04:LTS | python3.4 | All versions, no fix listed |
| Ubuntu:Pro:14.04:LTS | python3.5 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python3.5 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.6 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.8 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python3.8 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python3.9 | All versions, no fix listed |
| Ubuntu:22.04:LTS | python3.10 | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | python3.11 | All versions, no fix listed |
| Ubuntu:24.04:LTS | python3.12 | All versions, no fix listed |
| Ubuntu:26.10 | python3.14 | All versions, no fix listed |
| Ubuntu:26.04:LTS | python3.14 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2026-115791
- https://www.cve.org/CVERecord?id=CVE-2026-115791
- https://github.com/python/cpython/issues/161705
- https://github.com/python/cpython/pull/161706
- https://mail.python.org/archives/list/[email protected]/thread/ZKKA4Q7B35JEHSDIJNZ6TYKRDQJUHDAG/
- http://www.openwall.com/lists/oss-security/2026/11/10/30