Medium severity · published Mar 4, 2026
CVE-2026-2297
SourcelessFileLoader does not use io.open_code()
5.7
CVSS
0.2%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 11% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
CPython · Python Software Foundation
before 3.10.21; 3.11.0 before 3.11.16; 3.12.0 before 3.12.14; 3.13.0 before 3.13.13; 3.14.0 before 3.14.4; 3.15.0a1 before 3.15.0a7 · source: vendor