Vulnerability database / CVE-2026-2297
CVE-2026-2297
MEDIUM 5.7 CVSS 4.0 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.
Published 4 Mar 2026
Last modified 24 Nov 2026 Assigned by cna@python.org NVD status Analyzed Weakness
CWE-668 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
cna@python.org (Secondary)
CVSS 4.0
MEDIUM 5.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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD
nvd@nist.gov (Primary)
CVSS 3.1
MEDIUM 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
< 3.10.21
3.10.21 NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.11.0, < 3.11.16
3.11.16 NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.13.0, < 3.13.13
3.13.13 NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.14.0, < 3.14.4
3.14.4 NVD
python
pythoncpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*
= 3.15.0
NVD
python
pythoncpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*
= 3.15.0
NVD
python
pythoncpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*
= 3.15.0
NVD
python
pythoncpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*
= 3.15.0
NVD
python
pythoncpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*
= 3.15.0
NVD
python
pythoncpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:*
= 3.15.0
References
History
25 Nov 2026 20:10 UTC · NVD: first stored (published 4 Mar 2026)