CVE-2026-2297

Enriched by CISA
 

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.
https://nvd.nist.gov/vuln/detail/CVE-2026-2297

Categories

CWE-668 : Exposure of Resource to Wrong Sphere
The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.

References


 

AFFECTED (from MITRE)


Vendor Product Versions
Python Software Foundation CPython
  • < 3.13.13 [affected]
  • 3.14.0 < 3.14.4 [affected]
  • 3.15.0a1 < 3.15.0a7 [affected]
© 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.

CPE

cpe start end


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
No known exploits


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
No entry