CVE Tools

CVE-2026-2297

SourcelessFileLoader does not use io.open_code()

Published: Mar 4, 2026Updated: May 1, 2026 Sources: CVE List NVD BDUCWE-668
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

AV:LAC:LC:NI:HA:N
Exploitability
AV:LAccess Vector
Local
AC:LAccess Complexity
Low
Impact
C:NConfidentiality
None
I:HIntegrity
H
A:NAvailability
None

Weaknesses

Affected Products

python software foundationoss-projectUSOSS Librariesaka python software foundation, psf
сообщество свободного программного обеспеченияoss-projectOperating Systemsaka сообщество свободного программного обеспечения, fsf

Exploitability

Official Patch Available

References

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 Account
Plain-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