CVE-2026-2297
published medium CVSS 4.0 · 5.7SourcelessFileLoader does not use io.open_code()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.10.21 · 3.11.0 to < 3.11.16 · 3.12.0 to < 3.12.14 · 3.13.0 to < 3.13.13 · 3.14.0 to < 3.14.4 · 3.15.0a1 to < 3.15.0a7 · Other versions: unaffected | Affected | Not stated | PSF |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1583 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1600 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1674 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1821 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | python-unversioned-command | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| Alpine Linux | edge | python3 | Fixed | 3.14.5-r0 | Package fix record |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1832 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | python3.9 | Advisory build | 3.9.2-1+deb11u7 | DLA-4583-1 |
| Oracle Linux | 10 | python-unversioned-commandaarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| AlmaLinux | 10 | python3 | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux | 10 | python3-debug | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux | 10 | python3-devel | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux | 10 | python3-idle | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux | 10 | python3-libs | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux | 10 | python3-test | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux | 10 | python3-tkinter | Advisory build | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux | 10 | python3.14 | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-debug | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-devel | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-freethreading | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-freethreading-debug | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-freethreading-devel | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-freethreading-idle | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-freethreading-libs | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-freethreading-test | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-freethreading-tkinter | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-idle | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-libs | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-test | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 10 | python3.14-tkinter | Advisory build | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux | 8 | python3.12 | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 8 | python3.12-debug | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 8 | python3.12-devel | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 8 | python3.12-idle | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 8 | python3.12-libs | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 8 | python3.12-rpm-macros | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 8 | python3.12-test | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 8 | python3.12-tkinter | Advisory build | 3.12.13-2.el8_10 | ALSA-2026:10950 |
| AlmaLinux | 9 | python3.12 | Advisory build | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux | 9 | python3.12-debug | Advisory build | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux | 9 | python3.12-devel | Advisory build | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux | 9 | python3.12-idle | Advisory build | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux | 9 | python3.12-libs | Advisory build | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux | 9 | python3.12-test | Advisory build | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux | 9 | python3.12-tkinter | Advisory build | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux | 9 | python3.14 | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-debug | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-devel | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-freethreading | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-freethreading-debug | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-freethreading-devel | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-freethreading-idle | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-freethreading-libs | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-freethreading-test | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-freethreading-tkinter | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-idle | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-libs | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-test | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux | 9 | python3.14-tkinter | Advisory build | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| Alpine Linux | v3.21 | python3 | Fixed | 3.12.14-r0 | Package fix record |
| Alpine Linux | v3.22 | python3 | Fixed | 3.12.14-r0 | Package fix record |
| Alpine Linux | v3.23 | python3 | Fixed | 3.12.14-r0 | Package fix record |
| Alpine Linux | v3.24 | python3 | Fixed | 3.14.5-r0 | Package fix record |
| Oracle Linux | 10 | python-unversioned-commandx86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3aarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3x86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-debugaarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-debugx86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-develaarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-develx86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-idleaarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-idlex86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-libsaarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-libsx86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-testaarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-testx86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-tkinteraarch64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3-tkinterx86_64 | Advisory build | 0:3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux | 10 | python3.14aarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14x86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-debugaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-debugx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-develaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-develx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreadingaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreadingx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-debugaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-debugx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-develaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-develx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-idleaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-idlex86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-libsaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-libsx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-testaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-testx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-tkinteraarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-freethreading-tkinterx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-idleaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-idlex86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-libsaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-libsx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-testaarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-testx86_64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux | 10 | python3.14-tkinteraarch64 | Advisory build | 0:3.14.4-2.el10_2 | ELSA-2026-19019 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.10.21 (affected · python)3.11.0 to < 3.11.16 (affected · python)3.12.0 to < 3.12.14 (affected · python)3.13.0 to < 3.13.13 (affected · python)3.14.0 to < 3.14.4 (affected · python)3.15.0a1 to < 3.15.0a7 (affected · python)Default: unaffected | PSF · cna |
Weaknesses
1- CWE-668 CWE-668 Exposure of Resource to Wrong Sphere
References
9- http://www.openwall.com/lists/oss-security/2026/03/05/6
- https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e
- https://github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9
- https://github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd
- https://github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e
- https://github.com/python/cpython/commit/c70adad78caeeea33f92f560ecb93331ca11bf66
- https://github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86
- https://github.com/python/cpython/issues/145506
- https://github.com/python/cpython/pull/145507
Provider assertions
3PSF · cna
SourcelessFileLoader does not use io.open_code()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b2fda44ccadf3a646770abb07e0063fac0e325c92e21f4fcfb81364e90749a62
- Ingested
- 23 Sep 2026, 09:08:49 UTC
- Source record
- Official CVE record