cve.bz

CVE-2026-2297 python software foundation cpython: Exposure of Resource to Wrong Sphere

5.7 mediumEPSS 0.2%

Medium (5.7) in python software foundation cpython. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.7 medium
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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-03-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-668 Exposure of Resource to Wrong Sphere
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-2297 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-2297?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-2297?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-2297 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.10.21
Python Software Foundation CPythonfrom 3.11.0 before 3.11.16
Python Software Foundation CPythonfrom 3.12.0 before 3.12.14
Python Software Foundation CPythonfrom 3.13.0 before 3.13.13
Python Software Foundation CPythonfrom 3.14.0 before 3.14.4
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0a7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python3.93.9.2-1+deb11u7DLA-4583-1
Debian12python3.113.11.2-6+deb12u8DEBIAN-CVE-2026-2297
Debian12, 13pypy3no fix listedDEBIAN-CVE-2026-2297
Debian13python3.133.13.5-2+deb13u1DEBIAN-CVE-2026-2297
Debian14pypy37.3.22+dfsg-1DEBIAN-CVE-2026-2297
Debian14python3.143.14.3-4DEBIAN-CVE-2026-2297
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.16UBUNTU-CVE-2026-2297 USN-8509-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.15UBUNTU-CVE-2026-2297 USN-8509-1
Ubuntu25.10python3.13, python3.14no fix listedUBUNTU-CVE-2026-2297
Ubuntu26.04:LTSpython3.143.14.4-1ubuntu0.1USN-8509-1
UbuntuPro:18.04:LTSpython3.8no fix listedUBUNTU-CVE-2026-2297
UbuntuPro:20.04:LTSpython3.8, python3.9no fix listedUBUNTU-CVE-2026-2297
UbuntuPro:22.04:LTSpython3.11no fix listedUBUNTU-CVE-2026-2297
Red Hatenterprise_linux:8::appstreampython3.12, python3.12-libs, python3.12-devel and 4 more0:3.12.13-2.el8_10RHSA-2026:10950
Red Hatenterprise_linux:8::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.13-2.el8_10RHSA-2026:10950
Red Hatenterprise_linux:9::appstreampython3.12, python3.12-libs, python3.12-devel and 3 more0:3.12.13-2.el9_8RHSA-2026:19177
Red Hatenterprise_linux:9::appstreampython3.14, python3.14-libs, python3.14-devel and 3 more0:3.14.4-2.el9_8RHSA-2026:19176
Red Hatenterprise_linux:9::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.13-2.el9_8RHSA-2026:19177
Red Hatenterprise_linux:9::crbpython3.14, python3.14-idle, python3.14-test and 11 more0:3.14.4-2.el9_8RHSA-2026:19176
Red Hatenterprise_linux:10.2python3, python3.12, python3-idle and 8 more0:3.12.13-2.el10_2RHSA-2026:19064
Red Hatenterprise_linux:10.2python3.14, python3.14-idle, python3.14-libs and 13 more0:3.14.4-2.el10_2RHSA-2026:19019
Red Hathummingbird:1python3, python3.14, python3-idle and 13 more0:3.14.4-1.hum1RHSA-2026:7661
Red Hathummingbird:1python3.11, python3.11-idle, python3.11-libs and 4 more0:3.11.15-4.hum1RHSA-2026:8822
Red Hathummingbird:1python3.12, python3.12-idle, python3.12-libs and 4 more0:3.12.13-3.hum1RHSA-2026:8824
Red Hathummingbird:1python3.13, python3.13-idle, python3.13-libs and 6 more0:3.13.13-1.hum1RHSA-2026:7443
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepython311, python311-core, python311-documentation3.11.15-150400.9.80.1SUSE-SU-2026:1117-1
SUSELinux Enterprise Module for Basesystem 15 SP7python311-core3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.15-150400.9.80.1SUSE-SU-2026:1117-1
SUSELinux Enterprise Module for Python 3 15 SP7python313, python313-core3.13.13-150700.4.45.1SUSE-SU-2026:1354-1
SUSELinux Enterprise Module for Python 3 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6python311, python311-core3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6python312, python312-core3.12.14-150600.3.68.1SUSE-SU-2026:4534-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python313, python313-core, python313-documentation3.13.13-160000.1.1SUSE-SU-2026:21178-1
SUSELinux Micro 6.0python311, python311-core3.11.15-2.1SUSE-SU-2026:20956-1
SUSELinux Micro 6.1python311, python311-core3.11.15-slfo.1.1_2.1SUSE-SU-2026:20951-1
SUSELinux Micro 6.1python311, python311-core3.11.16-slfo.1.1_1.1SUSE-SU-2026:23743-1
SUSELinux Micro 6.2python313, python313-core3.13.13-160000.1.1SUSE-SU-2026:21104-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
openSUSELeap 15.6python39, python39-core, python39-documentation3.9.25-150300.4.96.1SUSE-SU-2026:0971-1
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.13-160000.1.1openSUSE-SU-2026:20517-1
openSUSETumbleweedpython3103.10.20-2.1openSUSE-SU-2026:10404-1
openSUSETumbleweedpython3113.11.15-2.1openSUSE-SU-2026:10381-1
openSUSETumbleweedpython3123.12.13-2.1openSUSE-SU-2026:10377-1
openSUSETumbleweedpython3133.13.12-2.1openSUSE-SU-2026:10394-1
openSUSETumbleweedpython3143.14.3-3.1openSUSE-SU-2026:10405-1
openSUSETumbleweedpython3153.15.0~a8-1.1openSUSE-SU-2026:10522-1
AlmaLinux8python3.12, python3.12-idle, python3.12-libs and 5 more3.12.13-2.el8_10ALSA-2026:10950
AlmaLinux9python3.12, python3.12-idle, python3.12-libs and 4 more3.12.13-2.el9_8ALSA-2026:19177
AlmaLinux9python3.14, python3.14-idle, python3.14-libs and 11 more3.14.4-2.el9_8ALSA-2026:19176
AlmaLinux10python3, python3-idle, python3-libs and 5 more3.12.13-2.el10_2ALSA-2026:19064
AlmaLinux10python3.14, python3.14-idle, python3.14-libs and 11 more3.14.4-2.el10_2ALSA-2026:19019
Rocky Linux8python3.120:3.12.13-2.el8_10RLSA-2026:10950
Rocky Linux9python3.120:3.12.13-2.el9_8RLSA-2026:19177
Rocky Linux9python3.140:3.14.4-2.el9_8RLSA-2026:19176
Rocky Linux10python3.120:3.12.13-2.el10_2RLSA-2026:19064
Rocky Linux10python3.140:3.14.4-2.el10_2RLSA-2026:19019
Alpinev3.21, v3.22, v3.23python33.12.14-r0ALPINE-CVE-2026-2297
Alpinev3.24python33.14.5-r0ALPINE-CVE-2026-2297
Azure Linux2python3no fix listedAZL-79413
Azure Linux3python33.12.9-14AZL-79457
Azure Linux3tensorflowno fix listedAZL-79491
Alpaquita23python33.11.13-r4BELL-CVE-2026-2297
Alpaquita25python33.12.12-r3BELL-CVE-2026-2297
Alpaquitastreampython33.12.12-r4BELL-CVE-2026-2297
BellSoft Hardened Containers23python33.11.13-r4BELL-CVE-2026-2297
BellSoft Hardened Containers25python33.12.12-r3BELL-CVE-2026-2297
BellSoft Hardened Containersstreampython33.12.12-r4BELL-CVE-2026-2297

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.14-0:3.14.4-2.el10_2Fixed 2026-05-19RHSA-2026:19019
Red Hat Enterprise Linux 10python3.12-0:3.12.13-2.el10_2Fixed 2026-05-19RHSA-2026:19064
Red Hat Enterprise Linux 8python3.12-0:3.12.13-2.el8_10Fixed 2026-04-27RHSA-2026:10950
Red Hat Enterprise Linux 9python3.14-0:3.14.4-2.el9_8Fixed 2026-05-19RHSA-2026:19176
Red Hat Enterprise Linux 9python3.12-0:3.12.13-2.el9_8Fixed 2026-05-19RHSA-2026:19177
Red Hat Hardened Imagespython3-13-main-3.13.13-1.hum1Fixed 2026-04-10RHSA-2026:7443
Red Hat Hardened Imagespython3-14-main-3.14.4-1.hum1Fixed 2026-04-11RHSA-2026:7661
Red Hat Hardened Imagespython3-11-main-3.11.15-4.hum1Fixed 2026-04-17RHSA-2026:8822
Red Hat Hardened Imagespython3-12-main-3.12.13-3.hum1Fixed 2026-04-17RHSA-2026:8824
Red Hat Update Infrastructure 5rhui5/installer-rhel9:1779798165Fixed 2026-05-27RHSA-2026:21275
Red Hat Enterprise Linux 6pythonOut of support scope
Red Hat Enterprise Linux 7pythonOut of support scope
Red Hat Enterprise Linux 7python3Out of support scope
Red Hat Enterprise Linux 8python3Fix deferred
Red Hat Enterprise Linux 8python3.11Fix deferred
Red Hat Enterprise Linux 8python36:3.6/python36Fix deferred
Red Hat Enterprise Linux 8python39-devel:3.9/python39Fix deferred
Red Hat Enterprise Linux 9python3.11Fix deferred
Red Hat Enterprise Linux 9python3.9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-aws-cuda-rhel9Fix deferred
7 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-2297.

References

Check your stackJSON