CVE-2026-115791: Python Software Foundation Cpython

Medium severity, CVSS 5.3. EPSS: 0.2% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Python Software Foundation Cpython, before 3.16.0: fixed in 3.16.0

Affected products

Published 2026-11-10. Last modified 2026-11-11.