Back
CVE-2026-2297
SourcelessFileLoader does not use io.open_code()
Medium5.7EPSS 0.22%
- Published
- Updated
- Reserved
- Assigned by
- PSF
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| PSFCNA (assigner) | 4.0 | Medium5.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 |
| NVDNVD · Awaiting Analysis | 4.0 | Medium5.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 |
- EPSS (exploitation in 30 days)
- 0.22% · top 87% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.7.
Weakness
Affected products
Python Software Foundation · CPython
- affected < 3.10.21
- affected 3.11.0 – < 3.11.16
- affected 3.12.0 – < 3.12.14
- affected 3.13.0 – < 3.13.13
- affected 3.14.0 – < 3.14.4
- affected 3.15.0a1 – < 3.15.0a7
References (9)
- https://github.com/python/cpython/issues/145506 (opens in a new tab)issue-tracking
- https://github.com/python/cpython/pull/145507 (opens in a new tab)patch
- https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e (opens in a new tab)patch
- https://github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e (opens in a new tab)patch
- https://github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86 (opens in a new tab)patch
- https://github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9 (opens in a new tab)patch
- https://github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd (opens in a new tab)patch
- https://github.com/python/cpython/commit/c70adad78caeeea33f92f560ecb93331ca11bf66 (opens in a new tab)patch
- http://www.openwall.com/lists/oss-security/2026/03/05/6 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2026-2297)Record last updated .