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.
Metrics
Affected Vendors & Products
References
History
Thu, 05 Mar 2026 09:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Python
Python cpython |
|
| Vendors & Products |
Python
Python cpython |
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
|
Status: PUBLISHED
Assigner: PSF
Published: 2026-03-04T22:10:43.297Z
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.