CVE-2026-2297: SourcelessFileLoader does not use io.open_code()
Vulnerability summary
CVE-2026-2297 is a medium (CVSS 5.7) Exposure of Resource to Wrong Sphere vulnerability in python software foundation cpython. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.6% of scored vulnerabilities.
Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 23 · Related 14Timeline
- 04-03-2026PublishedVulnerability first disclosed.
- 13-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated5.7MediumCVSS: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
- OSV · UbuntuEcosystem advisory · calculated5.7MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated5.7MediumCVSS: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
- OSV · WolfiEcosystem advisory · calculated5.7MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.7MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- NVDNIST5.7MediumCVSS: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 trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard13 products
- python-3.10< 3.10.21-r0
- python-3.11< 3.11.16-r1
- python-3.12< 3.12.14-r2
- python-3.13< 3.13.12-r3
- python-3.14< 3.14.3-r3
Wolfi12 products
- python-3.10< 3.10.21-r0
- python-3.11< 3.11.16-r1
- python-3.12< 3.12.14-r2
- python-3.13< 3.13.12-r3
- python-3.14< 3.14.3-r3
Opensuse7 products
- python311&distro=openSUSE Tumbleweed< 3.11.15-2.1
- python312&distro=openSUSE Tumbleweed< 3.12.13-2.1
- python313&distro=openSUSE Tumbleweed< 3.13.12-2.1
- python314&distro=openSUSE Tumbleweed< 3.14.3-3.1
- python39-core&distro=openSUSE Leap 15.6< 3.9.25-150300.4.96.1
Ubuntu7 products
- python3.10< 3.10.12-1~22.04.16
- python3.11All versions (No fix recorded)
- python3.12< 3.12.3-1ubuntu0.15
- python3.13All versions (No fix recorded)
- python3.14All versions (No fix recorded)
Debian4 products
- pypy3All versions (No fix recorded) | < 7.3.22+dfsg-1
- python3.11< 3.11.2-6+deb12u8
- python3.13< 3.13.14-1 | < 3.13.5-2+deb13u1
- python3.14< 3.14.3-4
Alpine1 product
- python3< 3.12.14-r0 | < 3.14.5-r0
Python software foundation1 product
- cpython< 3.10.21 | ≥ 3.11.0, < 3.11.16 | ≥ 3.12.0, < 3.12.14 | ≥ 3.13.0, < 3.13.13 | ≥ 3.14.0, < 3.14.4 | ≥ 3.15.0a1, < 3.15.0a7
7 vendors · 45 products
References
20 linksShow all 20 references
- github.com/python/cpythonPACKAGE