CVE-2026-2297 Details
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.
A vulnerability exists in CPython's import hook for legacy sourceless '.pyc' files. The issue arises because the 'SourcelessFileLoader' subclass does not correctly use 'io.open_code()' to read these files, which can lead to validation bypass. This vulnerability affects CPython versions 3.10, 3.11, 3.12, 3.13, and 3.14.
The vulnerability has been fixed in CPython. Users should update to the latest version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-668 | Exposure of Resource to Wrong Sphere | CISA-ADP |
Affected Products
No affected product data is available for this CVE.
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 13, 2026 | CVE Modified | [email protected] |
| Aug 5, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 1, 2026 | CVE Modified | [email protected] |
| Mar 12, 2026 | CVE Modified | CISA-ADP |
| Mar 5, 2026 | CVE Modified | CVE |
| Mar 4, 2026 | New CVE Received | [email protected] |