CVE-2026-2297CWE-668

CVE-2026-2297

published March 5, 2026

CVSS
5.7
EPSS
0%
Percentile
10.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
5.7 · NONE
CVSS v4.0
Not supplied
EPSS
0.00206 · 10.1th percentile
Weakness
CWE-668 · Exposure of Resource to Wrong Sphere
Published
2026-03-05T04:16Z
References (9)
EPSS history
Timeline
  • 04 MAR 22:10Z
    SourcelessFileLoader does not use io.open_code()
    cvelistv5