CVE-2026-2297
SourcelessFileLoader does not use io.open_code()
EPSS 0.01%
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.
How to fix CVE-2026-2297
To remediate CVE-2026-2297, upgrade the affected package to a fixed version below.
- Alpine/python3—upgrade to 3.14.5-r0 or later
- Bitnami/python—upgrade to 3.15.0 or later
- —upgrade to 3.15.0 or later
- —no fix listed
- —no fix listed
- —upgrade to 3.13.5-2+deb13u1 or later
- —upgrade to 3.14.3-4 or later
- —upgrade to 3.9.2-1+deb11u7 or later
Is CVE-2026-2297 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (8)
- from 0, < 3.14.5-r0
- from 0, < 3.15.0
- from 0, < 3.15.0
- from 0
- from 0
- from 0, < 3.13.5-2+deb13u1
- from 0, < 3.14.3-4
- from 0, < 3.9.2-1+deb11u7
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |