CVE-2026-115791: Libpython · Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction
Affects libpythonSource GCVE Database
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
Thin evidence
One scorer or none| CNA (PSF) | CVSS 4.0 | 5.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:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
Bitnamilibpythonpkg:bitnami/libpythonOther threats | Affected
| Fixed in
|
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
- openwall.com/lists/oss-security/2026/11/10/30 (opens in a new tab)
- github.com/python/cpython/issues/161705 (opens in a new tab)
- github.com/python/cpython/pull/161706 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/ZKKA4Q7B35JEHSDIJNZ6TYKRDQJUHDAG/ (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-115791 (opens in a new tab)