A plain-language summary of this CVE is being written; the description below is the NVD's own text.
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.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- github.com /python/cpython/issues/161705
- github.com /python/cpython/pull/161706
- mail.python.org /archives/list/security-announce@python.org/thread/ZKKA4Q7B…
- www.openwall.com /lists/oss-security/2026/11/10/30
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning