CVE-2026-2297: Python Software Foundation CPython · Resource Exposure
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 5.7 Medium · fixed in 3.15.0a7 : update Python Software Foundation CPython when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.15.0a7, 3.14.4, 3.13.13 +3
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- github.com/python/cpython/issues/145506 (opens in a new tab)
- github.com/python/cpython/pull/145507 (opens in a new tab)
- github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e (opens in a new tab)
- github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e (opens in a new tab)
- github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86 (opens in a new tab)
- github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9 (opens in a new tab)
- github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd (opens in a new tab)
- openwall.com/lists/oss-security/2026/03/05/6 (opens in a new tab)
- github.com/python/cpython/commit/c70adad78caeeea33f92f560ecb93331ca11bf66 (opens in a new tab)