Security mailing lists by PureSourceCode

CVE-2026-2297

MEDIUM 5.7CVSS 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
NVDJSON

Scores

SourceScored byVersionScoreVector / 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:X
NVD 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
< 3.10.21 3.10.21
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.11.0, < 3.11.16 3.11.16
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.13.0, < 3.13.13 3.13.13
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.14.0, < 3.14.4 3.14.4
NVD python python
cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*
= 3.15.0
NVD python python
cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*
= 3.15.0
NVD python python
cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*
= 3.15.0
NVD python python
cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*
= 3.15.0
NVD python python
cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*
= 3.15.0
NVD python python
cpe: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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.