CVE-2026-2297

MEDIUM

CPython - Info Disclosure

Title source: llm
STIX 2.1

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.

Scores

CVSS v4 5.7
EPSS 0.0002
EPSS Percentile 4.7%
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

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-668
Status published
Products (4)
Python Software Foundation/CPython < 3.13.13
Python Software Foundation/CPython < 3.15.0a7
Python Software Foundation/CPython 3.14.0 - 3.14.4
Python Software Foundation/CPython 3.15.0a1 - 3.15.0a7
Published Mar 04, 2026
Tracked Since Mar 05, 2026