VDB

CVE-2026-2297

CVE-2026-2297 PUBLISHED CVSS 5.7 MEDIUM

SourcelessFileLoader does not use io.open_code()

Reported by psf · Published March 4, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3.14-freethreading-tkintererrata.rockylinux.org3.14.4-2.el9, 3.14.4-2.el10
python3.12-debugsourceerrata.rockylinux.org3.12.13-2.el9, 3.12.13-2.el8, 3.12.13-2.el10, 0:3.12.13-2.el8_10.aarch64
python3.14-tkintererrata.rockylinux.org3.14.4-2.el9, 3.14.4-2.el10
python3.14-debugerrata.rockylinux.org3.14.4-2.el9, 3.14.4-2.el10
python3.14-testerrata.rockylinux.org3.14.4-2.el9, 3.14.4-2.el10
python3.14errata.rockylinux.org3.14.4-2.el9, 3.14.4-2.el10
python3.13-testAmazon Linux3.13.13-1.amzn2023.0.1
python3errata.rockylinux.org3.12.13-2.el10
python3.12errata.rockylinux.org3.12.13-2.el9, 3.12.13-2.el8, 3.12.13-2.el10, 0:3.12.13-2.el8_10.x86_64, 0:3.12.13-2.el8_10.src, 0:3.12.13-2.el8_10.i686
python-unversioned-commanderrata.rockylinux.org3.12.13-2.el10
python3.12-develerrata.rockylinux.org3.12.13-2.el9, 3.12.13-2.el8, 0:3.12.13-2.el8_10.x86_64, 0:3.12.13-2.el8_10.i686, 0:3.12.13-2.el8_10.aarch64
python3.14-freethreading-develerrata.rockylinux.org3.14.4-2.el10

39 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
5.7
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
Python Software FoundationCPython0, 3.11.0, 3.12.0
Python Software FoundationCPython0, 3.11.0, 3.12.0

Timeline

  • Mar 4, 2026 CVE Published
  • Mar 5, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 5, 2026 PoC Published (6 in total, the first dated here)
  • Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Apr 14, 2026 Security Advisory (16 in total, the first dated here)
  • Apr 28, 2026 Distribution Patch (13 in total, the first dated here)
  • Jul 9, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-2297
vulnetix vdb fixes CVE-2026-2297

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-2297/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›