CVE-2026-115791
Last modified
CVE-2026-115791 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | < 3.16.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-115791?
How severe is CVE-2026-115791?
How do I fix CVE-2026-115791?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-115779Effect is a TypeScript framework that consists of several pa…6.3
- CVE-2026-11578The Fluent Forms WordPress plugin before 6.2.5 does not pro…2.7
- CVE-2026-115785An SMTP command injection vulnerability in the data-source t…4.3
- CVE-2026-115786A mailbox quota-accounting vulnerability in Zimbra Collabora…6.5
- CVE-2026-115788IBM App Connect Operator and IBM App Connect Enterprise Cert…8.1
- CVE-2026-11579The Kali Forms — Contact Form & Drag-and-Drop Builder WordPr…5.3
- CVE-2026-115793P-Net before 1.0.3 does not release the RPC session allocate…8.7
- CVE-2026-115794P-Net before 1.0.3 passes the application alarm callback a d…2.3
- CVE-2026-115795P-Net before 1.0.3 does not check that a complete block head…5.3
- CVE-2026-115796A security flaw has been discovered in Tenda F6 12.02.01.73.…4.3
- CVE-2026-115797A weakness has been identified in Tenda F6 12.02.01.73. Affe…3.7
- CVE-2026-1158A security flaw has been discovered in Totolink LR350 9.3.5u…8.8
Are you affected by CVE-2026-115791?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
