CVE-2026-2297
MEDIUMCPython < 3.15.0a7 - Unprotected User Data Exposure via SourcelessFileLoader Import Hook
Title source: llmDescription
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.
References (8)
Core 8
Core References
Issue Tracking issue-tracking
https://github.com/python/cpython/issues/145506
Issue Tracking patch
https://github.com/python/cpython/pull/145507
Scores
CVSS v4
5.7
EPSS
0.0020
EPSS Percentile
10.1%
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-668
Status
published
Products (4)
Python Software Foundation/CPython
< 3.13.13
Python Software Foundation/CPython
< 3.15.0a7
Python Software Foundation/CPython
3.14.0 - 3.14.4
Python Software Foundation/CPython
3.15.0a1 - 3.15.0a7
Published
Mar 04, 2026
Tracked Since
Mar 05, 2026