Vulnerabilities

CVE-2026-2297

Medium 5.5 CVSS 3.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.

Description as published by the source, in English.

Key facts

Published
2026-03-04
Last modified
2026-11-24
Assigned by
cna@python.org
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.2 % higher than 10 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Python Python < 3.10.21 Affected
Python Python 3.15.0 Affected
Python Python ≥ 3.11.0, < 3.11.16 Affected
Python Python ≥ 3.13.0, < 3.13.13 Affected
Python Python ≥ 3.14.0, < 3.14.4 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities