5.7

CVE-2026-2297: SourcelessFileLoader does not use io.open_code()

Awaiting analysis
AliasesALPINE-CVE-2026-2297UBUNTU-CVE-2026-2297DEBIAN-CVE-2026-2297
Published 04-03-2026Last modified 13-08-2026

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.

Priority
Routine

Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.7/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.22%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 23 · Related 14

Timeline

  1. 04-03-2026
    PublishedVulnerability first disclosed.
  2. 13-08-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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 links
Show all 20 references