Affected versions
Ubuntu22.04:LTS/python3.10
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/python3.12
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/python3.14
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/python3.14
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/python2.7
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/python3.4
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/python3.5
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:16.04:LTS/python2.7
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:16.04:LTS/python3.5
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:18.04:LTS/python2.7
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:18.04:LTS/python3.6
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:18.04:LTS/python3.7
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:18.04:LTS/python3.8
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/python2.7
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/python3.8
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/python3.9
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:22.04:LTS/python2.7
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:22.04:LTS/python3.11
- Affected versions
- *
- Fixed version
- Not reported
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.
Links
- http://www.openwall.com/lists/oss-security/2026/11/10/30
- https://github.com/python/cpython/issues/161705
- https://github.com/python/cpython/pull/161706
- https://mail.python.org/archives/list/security-announce@python.org/thread/ZKKA4Q7B35JEHSDIJNZ6TYKRDQJUHDAG/
- https://ubuntu.com/security/CVE-2026-115791
- https://www.cve.org/CVERecord?id=CVE-2026-115791

