CVE-2026-2297
SourcelessFileLoader does not use io.open_code()
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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:LAccess VectorLocal
AC:LAccess ComplexityLow
Impact
C:NConfidentialityNone
I:HIntegrityH
A:NAvailabilityNone
Weaknesses
Affected Products
Сообщество свободного программного обеспечения
oss-projectaka fsf
Python Software Foundation
oss-project·USaka psf
Exploitability
Official Patch Available
References
https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e
github.com
https://github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9
github.com
https://github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd
github.com
and 12 more references View all →
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
