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.
CVE-2026-2297
This medium-severity CVE scores 5.7 under NVD CVSS v3. EPSS exploit probability: 0.0%, top 99% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.7
- EG Score
- 5.7(medium)
- EPSS
- 10.2%
- KEV
- Not listed
Published
March 4, 2026
Last Modified
May 1, 2026
Advisory Details (8)
Auto-updated May 1, 2026oss-security - Fwd: [CVE-2026-2297] SourcelessFileLoader does not use io.open_code()
http://www.openwall.com/lists/oss-security/2026/03/05/6gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code by zooba · Pull Request #145507 · python/cpython · GitHub
https://github.com/python/cpython/pull/145507[CVE-2026-2297] SourcelessFileLoader does not use io.open_code() · Issue #145506 · python/cpython · GitHub
https://github.com/python/cpython/issues/145506[3.14] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoade… · python/cpython@e58e980 · GitHub
https://github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses … · python/cpython@a51b1b5 · GitHub
https://github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e[3.10] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoade… · python/cpython@876858c · GitHub
https://github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd[3.11] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoade… · python/cpython@69ddd9b · GitHub
https://github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9[3.13] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoade… · python/cpython@482d6f8 · GitHub
https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603eVendor Advisories for CVE-2026-2297(11)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- CVE-2026-2297Microsoft Security Response Center (MSRC)Medium
SourcelessFileLoader does not use io.open_code()
- RHSA-2026:21275Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat Update Infrastructure 5.1 security update
- RHSA-2026:19176Red Hat Product SecurityHigh
Red Hat Security Advisory: python3.14 security update
- RHSA-2026:19177Red Hat Product SecurityHigh
Red Hat Security Advisory: python3.12 security update
- RHSA-2026:19064Red Hat Product SecurityHigh
Red Hat Security Advisory: python3.12 security update
- RHSA-2026:19019Red Hat Product SecurityHigh
Red Hat Security Advisory: python3.14 security update
- RHSA-2026:10950Red Hat Product SecurityHigh
Red Hat Security Advisory: python3.12 security update
- RHSA-2026:8824Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- +3 more
Patch Availability(10)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | rhui5/rhua-rhel9:1779798222 | 2026-05-27 | redhat |
| redhat | python3.12-0:3.12.13-2.el10_2 | 2026-05-19 | redhat |
| redhat | python3.14-0:3.14.4-2.el10_2 | 2026-05-19 | redhat |
| redhat | python3.14-0:3.14.4-2.el9_8 | 2026-05-19 | redhat |
| redhat | python3.12-0:3.12.13-2.el9_8 | 2026-05-19 | redhat |
| redhat | python3.12-0:3.12.13-2.el8_10 | 2026-04-27 | redhat |
| redhat | python3-11-main-3.11.15-4.hum1 | 2026-04-17 | redhat |
| redhat | python3-12-main-3.12.13-3.hum1 | 2026-04-17 | redhat |
| redhat | python3-14-main-3.14.4-1.hum1 | 2026-04-11 | redhat |
| redhat | python3-13-main-3.13.13-1.hum1 | 2026-04-10 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 8× in last 7d / 42× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 101 total refreshes for this CVE.
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 09:02 UTCOSV refresh
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 01:04 UTCEG score recompute
- 2026-06-12 01:04 UTCVendor advisory
- 2026-06-12 01:04 UTCGHSA enrichment
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 19:06 UTCEG score recompute
- 2026-06-10 19:06 UTCVendor advisory
- 2026-06-10 19:06 UTCGHSA enrichment
- 2026-06-09 17:58 UTCEG score recompute
- 2026-06-09 17:58 UTCVendor advisory
- 2026-06-09 17:58 UTCGHSA enrichment
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-07 16:10 UTCEG score recompute
- 2026-06-07 16:10 UTCVendor advisory
- 2026-06-07 16:10 UTCGHSA enrichment
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 11:43 UTCOSV refresh
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-26 13:44 UTCEPSS rescore
- 2026-05-26 13:44 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-24 16:59 UTCEPSS rescore
- 2026-05-23 15:21 UTCEPSS rescore
- 2026-05-23 00:09 UTCEG score recompute
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-20 22:38 UTCEPSS rescore
- 2026-05-20 22:38 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 21:57 UTCEG score recompute
- 2026-05-20 21:57 UTCVendor advisory
- 2026-05-20 21:57 UTCGHSA enrichment
- 2026-05-20 11:22 UTCEPSS rescore
- 2026-05-20 11:22 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
Frequently asked(5)
What is CVE-2026-2297?
When was CVE-2026-2297 disclosed?
Is CVE-2026-2297 actively exploited?
What is the CVSS score of CVE-2026-2297?
How do I remediate CVE-2026-2297?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-2297
Is Your Infrastructure Affected by CVE-2026-2297?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.