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.
History

Thu, 05 Mar 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-778
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Low


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

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published: 2026-03-04T22:10:43.297Z

Updated: 2026-03-05T18:35:25.713Z

Reserved: 2026-02-10T16:26:08.298Z

Link: CVE-2026-2297

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-03-04T23:16:10.757

Modified: 2026-03-04T23:16:10.757

Link: CVE-2026-2297

cve-icon Redhat

Severity : Low

Publid Date: 2026-03-04T22:10:43Z

Links: CVE-2026-2297 - Bugzilla