Back to search
CVE-2026-2297
Published: Mar 4, 2026
Modified: May 1, 2026
PUBLISHED
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.
| Vendor | Product | Versions |
|---|---|---|
Python Software Foundation | CPython | affected 0 - < 3.13.13affected 3.14.0 - < 3.14.4affected 3.15.0a1 - < 3.15.0a7 |
References
https://github.com/python/cpython/issues/145506
issue-tracking
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now