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/a51b1b512de1d56b3714b65628a2eae2b07e535e
github.com
https://github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86
github.com
and 11 more references View all →
News mentions
Could not load news mentions.
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
