CVE Catalog

CVE-2026-2297

MediumCVSS 5.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.21%

12th percentile - higher than 12% of all known CVEs

Summary

In CPython, the import hook handling legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and does not use io.open_code() to read the .pyc files. Consequently, sys.audit handlers for this audit event do not fire.

Risk Assessment

Missing audit events may hide dangerous .pyc file read operations, potentially hindering detection of malicious activity and violating security compliance.

Recommendation

Update CPython to a version where SourcelessFileLoader handling is fixed. If not possible, consider manually auditing .pyc file operations.

Other vulnerabilities in CPython

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS