Skip to main content
VulnerabilityPublished

CVE-2026-115791: Libpython · Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction

Affects libpythonSource GCVE Database

0
Compare
Authoritative record:CVE-2026-115791· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.16.0 when convenient.

Data as of 27 Nov 2026, 08:29 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (PSF)CVSS 4.05.3
Patch
Available – fixed in 3.16.0
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.

What to do

Upgrade libpython to 3.16.0.

Affected software

ProductAffectedFixed in
Bitnamilibpythonpkg:bitnami/libpythonOther threatsAffected
  • <3.16.0
Fixed in
  • 3.16.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in libpython version 3.16.0 that addresses this vulnerability by removing sys.path[0] during extraction in gzip, tarfile, and zipfile CLIs. Users should upgrade to libpython 3.16.0 or later to mitigate this issue.

Description

A vulnerability in libpython versions prior to 3.16.0 allows a Python script extracted from tarfile or zipfile CLI tools to shadow standard library modules. This can lead to execution of the extracted script if an error occurs during decompression, due to Python adding the current directory to sys.path. The issue is fixed in version 3.16.0 by removing sys.path[0] during extraction to prevent such shadowing.

References

Community reviews

Loading reviews…