CVE-2026-2297
CVE-2026-2297 — SourcelessFileLoader does not use io.open_code()
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 Updated Sources: cvelistV5, PSF
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.7
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.7 | CVSS 4.0 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-668
References
9 on the record
- github.com/python/cpython/issues/145506
issue-tracking
- github.com/python/cpython/pull/145507
patch
- github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e
patch
- github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e
patch
- github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86
patch
- github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9
patch
- github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd
patch
- github.com/python/cpython/commit/c70adad78caeeea33f92f560ecb93331ca11bf66
patch
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-115557 Distrust compromised intermediate certificates in ssl moduleCVSS 9.4
- CVE-2025-9074 Docker Desktop allows unauthenticated access to Docker Engine API from containersCVSS 9.3
- CVE-2026-96812 Host Root Sandbox Escape in gVisor via Character Device Passthrough and CUSECVSS 8.8
- CVE-2026-80268 Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Exposure of Resource to Wrong Sphere vulnerabilityCVSS 7.8
Elsewhere on this site
- Python Software Foundationevery CVE for this vendor
- CWE-668other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.