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.
Project Subscriptions
No data.
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Wed, 04 Mar 2026 22:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | SourcelessFileLoader does not use io.open_code() | |
| References |
|
|
| Metrics |
cvssV4_0
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: PSF
Published:
Updated: 2026-03-04T22:14:56.190Z
Reserved: 2026-02-10T16:26:08.298Z
Link: CVE-2026-2297
No data.
Status : Received
Published: 2026-03-04T23:16:10.757
Modified: 2026-03-04T23:16:10.757
Link: CVE-2026-2297
No data.
OpenCVE Enrichment
No data.
Weaknesses
No weakness.