CVE-2026-2297
SourcelessFileLoader does not use io.open_code()
5.5CVSSMEDIUM
Description
The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.
CVSS Vector Breakdown
Exploitability
AV:LAccess VectorLocal
AC:LAccess ComplexityLow
Impact
C:NConfidentialityNone
I:HIntegrityH
A:NAvailabilityNone
Weaknesses
Affected Products
сообщество свободного программного обеспеченияoss-projectOperating Systemsaka сообщество свободного программного обеспечения, fsf
Exploitability
Official Patch Available
References
https://github.com/python/cpython/issues/145506
github.com
https://github.com/python/cpython/pull/145507
github.com
https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e
github.com
and 11 more references View all →
Timeline
Published
Mar 4, 2026
Last Updated
May 1, 2026
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2026-2297 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows