Python · Cpython · CVE-2026-2297
**Name of the Vulnerable Software and Affected Versions**
CPython (affected versions not specified)
**Description**
The import hook in CPython that handles legacy *.pyc files using `SourcelessFileLoader` is incorrectly handled within `FileLoader`, a base class. This results in the failure to utilize `io.open code()` when reading these .pyc files. Consequently, `sys.audit` handlers for the associated audit event do not activate as expected.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.