CVE-2026-2297 SourcelessFileLoader does not use io.open_code()
MediumCVSS 5.7
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Python Software Foundation CPython | < 3.10.21 | 3.10.21 |
| Python Software Foundation CPython | >= 3.11.0, < 3.11.16 | 3.11.16 |
| Python Software Foundation CPython | >= 3.12.0, < 3.12.14 | 3.12.14 |
| Python Software Foundation CPython | >= 3.13.0, < 3.13.13 | 3.13.13 |
| Python Software Foundation CPython | >= 3.14.0, < 3.14.4 | 3.14.4 |
| Python Software Foundation CPython | >= 3.15.0a1, < 3.15.0a7 | 3.15.0a7 |
| cbl-mariner python3(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux python3(Azure Linux:3.0) | All versions | No fix listed |
| Microsoft cbl2 python3 3.9.19-19 | All versions | No fix listed |
| azure linux python3(Azure Linux:3.0) | < 3.12.9-14 | 3.12.9-14 |
| debian/pypy3(Debian:12) | All versions | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12~rc1+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12~rc2+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.13+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.14+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.15+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.16+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.16+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-2 | No fix listed |
Show 106 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.18+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.18+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.19+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.19+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-4 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-4 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.22+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.23+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.23+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 8.0.0+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 8.0.1+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | All versions | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.19+dfsg-2 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.20+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.20+dfsg-2 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.20+dfsg-3 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.20+dfsg-4 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.21+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.21+dfsg-2 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.21+dfsg-3 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.21+dfsg-4 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.22+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.23+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | = 7.3.23+dfsg-2 | No fix listed |
| debian/pypy3(Debian:13) | = 8.0.0+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | = 8.0.1+dfsg-1 | No fix listed |
| debian/pypy3(Debian:14) | < 7.3.22+dfsg-1 | 7.3.22+dfsg-1 |
| debian/pypy3(Debian:14) | = 7.3.19+dfsg-2 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.20+dfsg-1 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.20+dfsg-2 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.20+dfsg-3 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.20+dfsg-4 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.21+dfsg-1 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.21+dfsg-2 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.21+dfsg-3 | No fix listed |
| debian/pypy3(Debian:14) | = 7.3.21+dfsg-4 | No fix listed |
| debian/python3.11(Debian:12) | < 3.11.2-6+deb12u8 | 3.11.2-6+deb12u8 |
| debian/python3.11(Debian:12) | = 3.11.2-6 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u1 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u2 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u3 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u4 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u5 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u6 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u7 | No fix listed |
| debian/python3.13(Debian:13) | < 3.13.5-2+deb13u1 | 3.13.5-2+deb13u1 |
| debian/python3.13(Debian:13) | = 3.13.5-2 | No fix listed |
| debian/python3.14(Debian:14) | < 3.14.3-4 | 3.14.3-4 |
| debian/python3.14(Debian:14) | = 3.14.0-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0-2 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0-3 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0-4 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0-5 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~a7-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~b1-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~b2-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~b3-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~b4-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~rc1-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~rc2-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.0~rc3-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.2-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.3-1 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.3-2 | No fix listed |
| debian/python3.14(Debian:14) | = 3.14.3-3 | No fix listed |
| ubuntu/python3.10(Ubuntu:22.04) | < 3.10.12-1~22.04.16 | 3.10.12-1~22.04.16 |
| ubuntu/python3.11(Ubuntu:22.04) | All versions | No fix listed |
| redhat/python3.14(Red Hat:enterprise_linux:10.2) | < 3.14.4-2.el10_2 | 3.14.4-2.el10_2 |
| redhat/python3.12(Red Hat:enterprise_linux:10.2) | < 3.12.13-2.el10_2 | 3.12.13-2.el10_2 |
| redhat/python3.12(Red Hat:enterprise_linux:8) | < 3.12.13-2.el8_10 | 3.12.13-2.el8_10 |
| redhat/python3.14(Red Hat:enterprise_linux:9) | < 3.14.4-2.el9_8 | 3.14.4-2.el9_8 |
| redhat/python3.12(Red Hat:enterprise_linux:9) | < 3.12.13-2.el9_8 | 3.12.13-2.el9_8 |
| redhat/python3-13-main(Red Hat:hummingbird:1) | < 3.13.13-1.hum1 | 3.13.13-1.hum1 |
| redhat/python3-14-main(Red Hat:hummingbird:1) | < 3.14.4-1.hum1 | 3.14.4-1.hum1 |
| redhat/python3-11-main(Red Hat:hummingbird:1) | < 3.11.15-4.hum1 | 3.11.15-4.hum1 |
| redhat/python3-12-main(Red Hat:hummingbird:1) | < 3.12.13-3.hum1 | 3.12.13-3.hum1 |
| redhat/rhui5/installer-rhel9:1779798165(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/rhua-rhel9:1779798222(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/installer-tp-rhel9:1787135742(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/rhua-tp-rhel9:1787241260(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/python(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/python(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/python3(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/python3(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/python3.11(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/python36:3.6/python36(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/python39-devel:3.9/python39(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/python3.11(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/python3.9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/rhelai3/bootc-aws-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gcp-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| alpine/python3(Alpine:v3.21) | < 3.12.14-r0 | 3.12.14-r0 |
| alpine/python3(Alpine:v3.22) | < 3.12.14-r0 | 3.12.14-r0 |
| alpine/python3(Alpine:v3.23) | < 3.12.14-r0 | 3.12.14-r0 |
| alpine/python3(Alpine:v3.24) | < 3.14.5-r0 | 3.14.5-r0 |
| ubuntu/python3.12(Ubuntu:24.04) | < 3.12.3-1ubuntu0.15 | 3.12.3-1ubuntu0.15 |
References
- github.com issue-tracking
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- www.openwall.com
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2026-2297 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8509-1 vendor-advisory
- www.cve.org
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:19019 patch vendor-advisory
- RHSA-2026:19064 patch vendor-advisory
- RHSA-2026:10950 patch vendor-advisory
- RHSA-2026:19176 patch vendor-advisory
- RHSA-2026:19177 patch vendor-advisory
- RHSA-2026:7443 patch vendor-advisory
- RHSA-2026:7661 patch vendor-advisory
- RHSA-2026:8822 patch vendor-advisory
- RHSA-2026:8824 patch vendor-advisory
- RHSA-2026:21275 patch vendor-advisory
- RHSA-2026:58981 patch vendor-advisory
- Red Hat Bugzilla 2444691 issue-tracking
- nvd.nist.gov
- security.alpinelinux.org vendor-advisory