cbcvebase.
CVE-2026-2297
published 2026-03-04

CVE-2026-2297: The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use…

PriorityP424medium5.7CVSS 4.0
AVLACLATPPRLUINVCNVIHVANSCNSINSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
EPSS
0.20%
10.2th percentile
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.

Affected

15 ranges
VendorProductVersion rangeFixed in
debianpypy3< python3.14 3.14.3-4 (sid)python3.14 3.14.3-4 (sid)
debianpython2.7< python3.14 3.14.3-4 (sid)python3.14 3.14.3-4 (sid)
debianpython3.11< python3.14 3.14.3-4 (sid)python3.14 3.14.3-4 (sid)
debianpython3.13< python3.14 3.14.3-4 (sid)python3.14 3.14.3-4 (sid)
debianpython3.14< python3.14 3.14.3-4 (sid)python3.14 3.14.3-4 (sid)
debianpython3.9< python3.14 3.14.3-4 (sid)python3.14 3.14.3-4 (sid)
msrcazl3_python3_3.12.9-9_on_azure_linux_3.0
msrcazl3_tensorflow_2.16.1-11_on_azure_linux_3.0
msrccbl2_python3_3.9.19-19_on_cbl_mariner_2.0
python_software_foundationcpython< 3.13.133.13.13
python_software_foundationcpython>= 3.14.0 < 3.14.43.14.4
python_software_foundationcpython>= 3.15.0a1 < 3.15.0a73.15.0a7
ubuntupython3.10
ubuntupython3.12
ubuntupython3.14

CVSS provenance

nvdv4.05.7MEDIUMCVSS: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
osv5.7MEDIUM
vendor_debian5.7MEDIUM
vendor_msrc5.7MEDIUM
vendor_redhat5.7MEDIUM
vendor_ubuntu3.3LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.