CVE-2026-2297
high
CVSS v3
โ
CVSS v4 NEW
5.7
VIR risk
8.0
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.
Predictions
Exploit likelihood
20%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| sles | affected | | |
| debian | bookworm | affected | |
| debian | forky | fixed | 7.3.22+dfsg-1 |
| debian | sid | fixed | 7.3.22+dfsg-1 |
| debian | trixie | fixed | 3.13.5-2+deb13u1 |
| debian | bullseye | fixed | 0 |
References
- https://access.redhat.com/errata/RHSA-2026:19176
- https://access.redhat.com/errata/RHSA-2026:19177
- https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e
- https://github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9
- https://github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd
- https://github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e
- https://github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86
- https://github.com/python/cpython/issues/145506
- https://github.com/python/cpython/pull/145507
- http://www.openwall.com/lists/oss-security/2026/03/05/6
- https://www.suse.com/security/cve/CVE-2026-2297.html
- https://security-tracker.debian.org/tracker/CVE-2026-2297
- https://bugzilla.redhat.com/2431367
- https://bugzilla.redhat.com/2444691
- https://bugzilla.redhat.com/2448168
- https://bugzilla.redhat.com/2448181
- https://bugzilla.redhat.com/2449649
- https://bugzilla.redhat.com/2457409
- https://bugzilla.redhat.com/2457932
- https://bugzilla.redhat.com/2458049
- https://bugzilla.redhat.com/2458239
- https://errata.almalinux.org/9/ALSA-2026-19176.html
- https://access.redhat.com/errata/RHSA-2026:10950
- https://bugzilla.redhat.com/2395108
- https://bugzilla.redhat.com/2408891
CWEs
CWE-668
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.