Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2026-2297

SourcelessFileLoader does not use io.open_code()

Medium5.7EPSS 0.22%
Published
Updated
Reserved
Assigned by
PSF

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.

Scores

CVSS scores of CVE-2026-2297, by who scored it
Scored byCVSSScoreVector
PSFCNA (assigner)4.0Medium5.7CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVDNVD · Awaiting Analysis4.0Medium5.7CVSS: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 (exploitation in 30 days)
0.22% · top 87% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.7.

Weakness

Affected products

  • Python Software Foundation · CPython

    • affected < 3.10.21
    • affected 3.11.0 – < 3.11.16
    • affected 3.12.0 – < 3.12.14
    • affected 3.13.0 – < 3.13.13
    • affected 3.14.0 – < 3.14.4
    • affected 3.15.0a1 – < 3.15.0a7

References (9)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2026-2297 badge
[![CVE-2026-2297](https://trackcve.app/badge/CVE-2026-2297.svg)](https://trackcve.app/cve/CVE-2026-2297)

Record last updated .