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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Python Software Foundation | CPython | < 3.10.21, 3.11.0 – < 3.11.16, 3.12.0 – < 3.12.14, 3.13.0 – < 3.13.13, 3.14.0 – < 3.14.4, 3.15.0a1 – < 3.15.0a7 | 3.10.21 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pypy3 | 7.3.22+dfsg-1 | — |
| Debian 14 | python3.14 | 3.14.3-4 | — |
| Debian 13 | pypy3 | No fix yet | — |
| Debian 13 | python3.13 | 3.13.5-2+deb13u1 | — |
| Debian 12 | pypy3 | No fix yet | — |
| Debian 12 | python3.11 | 3.11.2-6+deb12u8 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | python3.14 | 3.14.4-1ubuntu0.1 | USN-8509-1 |
| Ubuntu 25.10 | python3.13 +1 | No fix yet | — |
| Ubuntu 24.04 LTS | python3.12 | 3.12.3-1ubuntu0.15 | USN-8509-1 |
| Ubuntu 22.04 LTS | python3.10 | 3.10.12-1~22.04.16 | USN-8509-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | python3.11 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | python3.8 +1 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | python3.8 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | python3 +8 | 3.12.13-2.el10_2 | RHSA-2026:19064 |
| RHEL 10 | python3.14 +13 | 3.14.4-2.el10_2 | RHSA-2026:19019 |
| RHEL 9 | python3.12 +6 | 3.12.13-2.el9_8 | RHSA-2026:19177 |
| RHEL 9 | python3.14 +13 | 3.14.4-2.el9_8 | RHSA-2026:19176 |
| RHEL 8 | python3.12 +7 | 3.12.13-2.el8_10 | RHSA-2026:10950 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | python3 +15 | 3.14.4-1.hum1 | RHSA-2026:7661 |
| Red Hat Hardened Images 1 | python3.11 +6 | 3.11.15-4.hum1 | RHSA-2026:8822 |
| Red Hat Hardened Images 1 | python3.12 +6 | 3.12.13-3.hum1 | RHSA-2026:8824 |
| Red Hat Hardened Images 1 | python3.13 +8 | 3.13.13-1.hum1 | RHSA-2026:7443 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | python3 +7 | 3.12.13-2.el10_2 | ALSA-2026:19064 |
| AlmaLinux 10 | python3.14 +13 | 3.14.4-2.el10_2 | ALSA-2026:19019 |
| AlmaLinux 9 | python3.12 +6 | 3.12.13-2.el9_8 | ALSA-2026:19177 |
| AlmaLinux 9 | python3.14 +13 | 3.14.4-2.el9_8 | ALSA-2026:19176 |
| AlmaLinux 8 | python3.12 +7 | 3.12.13-2.el8_10 | ALSA-2026:10950 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | python3.12 | 3.12.13-2.el10_2 | RLSA-2026:19064 |
| Rocky Linux 10 | python3.14 | 3.14.4-2.el10_2 | RLSA-2026:19019 |
| Rocky Linux 9 | python3.12 | 3.12.13-2.el9_8 | RLSA-2026:19177 |
| Rocky Linux 9 | python3.14 | 3.14.4-2.el9_8 | RLSA-2026:19176 |
| Rocky Linux 8 | python3.12 | 3.12.13-2.el8_10 | RLSA-2026:10950 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | python311-core | 3.11.15-150600.3.53.1 | SUSE-SU-2026:1349-1 |
| SLES 15 SP6 | python311 +1 | 3.11.15-150600.3.53.1 | SUSE-SU-2026:1349-1 |
| SLES 15 SP6 | python312 +1 | 3.12.14-150600.3.68.1 | SUSE-SU-2026:4534-1 |
| SLES 15 SP5 | python311 +2 | 3.11.15-150400.9.80.1 | SUSE-SU-2026:1117-1 |
| SLES 15 SP4 | python311 +2 | 3.11.15-150400.9.80.1 | SUSE-SU-2026:1117-1 |
| SLES 3 | python311 +1 | 3.11.15-150600.3.53.1 | SUSE-SU-2026:1349-1 |
| SLES 3 | python313 +1 | 3.13.13-150700.4.45.1 | SUSE-SU-2026:1354-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python313 +2 | 3.13.13-160000.1.1 | SUSE-SU-2026:21178-1 |
| SLES for SAP 15 SP6 | python311 +1 | 3.11.15-150600.3.53.1 | SUSE-SU-2026:1349-1 |
| SLES for SAP 15 SP6 | python312 +1 | 3.12.14-150600.3.68.1 | SUSE-SU-2026:4534-1 |
| SLES for SAP 15 SP5 | python311 +2 | 3.11.15-150400.9.80.1 | SUSE-SU-2026:1117-1 |
| SLES for SAP 15 SP4 | python311 +2 | 3.11.15-150400.9.80.1 | SUSE-SU-2026:1117-1 |
| SLES 16.0 | python313 +2 | 3.13.13-160000.1.1 | SUSE-SU-2026:21178-1 |
| SLE Micro 6.2 | python313 +1 | 3.13.13-160000.1.1 | SUSE-SU-2026:21104-1 |
| SLE Micro 6.1 | python311 +1 | 3.11.15-slfo.1.1_2.1 | SUSE-SU-2026:23743-1, SUSE-SU-2026:20951-1 |
| SLE Micro 6.0 | python311 +1 | 3.11.15-2.1 | SUSE-SU-2026:20956-1 |
| SLE HPC 15 SP5 | python311 +2 | 3.11.15-150400.9.80.1 | SUSE-SU-2026:1117-1 |
| SLE HPC 15 SP4 | python311 +2 | 3.11.15-150400.9.80.1 | SUSE-SU-2026:1117-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python310 | 3.10.20-2.1 | openSUSE-SU-2026:10404-1 |
| openSUSE Tumbleweed | python311 | 3.11.15-2.1 | openSUSE-SU-2026:10381-1 |
| openSUSE Tumbleweed | python312 | 3.12.13-2.1 | openSUSE-SU-2026:10377-1 |
| openSUSE Tumbleweed | python313 | 3.13.12-2.1 | openSUSE-SU-2026:10394-1 |
| openSUSE Tumbleweed | python314 | 3.14.3-3.1 | openSUSE-SU-2026:10405-1 |
| openSUSE Tumbleweed | python315 | 3.15.0~a8-1.1 | openSUSE-SU-2026:10522-1 |
| openSUSE Leap 16.0 | python313 +4 | 3.13.13-160000.1.1 | openSUSE-SU-2026:20517-1 |
| openSUSE Leap 15.6 | python311 +2 | 3.11.15-150600.3.53.1 | SUSE-SU-2026:1349-1 |
| openSUSE Leap 15.6 | python39 +2 | 3.9.25-150300.4.96.1 | SUSE-SU-2026:0971-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | python3 | 3.14.5-r0 | — |
| Alpine v3.23 | python3 | 3.12.14-r0 | — |
| Alpine v3.22 | python3 | 3.12.14-r0 | — |
| Alpine v3.21 | python3 | 3.12.14-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3 +7 | 3.9.25-1.amzn2023.0.4 | ALAS2023-2026-1583 |
| Amazon Linux 2023 | python3.11 +6 | 3.11.15-1.amzn2023.0.2 | ALAS2023-2026-1832 |
| Amazon Linux 2023 | python3.12 +6 | 3.12.13-2.amzn2023.0.2 | ALAS2023-2026-1821 |
| Amazon Linux 2023 | python3.13 +8 | 3.13.13-1.amzn2023.0.1 | ALAS2023-2026-1600 |
| Amazon Linux 2023 | python3.14 +13 | 3.14.4-2.amzn2023.0.1 | ALAS2023-2026-1674 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python3 | 3.12.9-14 | — |
| Azure Linux 3 | tensorflow | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | python3 | No fix yet | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | python3 +7 | 3.12.13-2.0.1.el10_2 | ELSA-2026-19064 |
| Oracle Linux 10 | python3.14 +13 | 3.14.4-2.el10_2 | ELSA-2026-19019 |
| Oracle Linux 9 | python3.12 +6 | 3.12.13-2.0.1.el9_8 | ELSA-2026-19177 |
| Oracle Linux 9 | python3.14 +13 | 3.14.4-2.el9_8 | ELSA-2026-19176 |
| Oracle Linux 8 | python3.12 +7 | 3.12.13-2.el8_10 | ELSA-2026-10950 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | python-3.10 | 3.10.21-r0 | — |
| Wolfi rolling | python-3.11 | 3.11.16-r1 | — |
| Wolfi rolling | python-3.12 | 3.12.14-r2 | — |
| Wolfi rolling | python-3.13 | 3.13.12-r3 | — |
| Wolfi rolling | python-3.14 +7 | 3.14.3-r3 | — |
Advisories 48
- ALSA-2026:19176 Important: python3.14 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19177 Important: python3.12 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19064 Important: python3.12 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19019 Important: python3.14 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:10950 Important: python3.12 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:8824 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:8822 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:19177 Red Hat Security Advisory: python3.12 security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:19176 Red Hat Security Advisory: python3.14 security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:19064 Red Hat Security Advisory: python3.12 security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:19019 Red Hat Security Advisory: python3.14 security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:10950 Red Hat Security Advisory: python3.12 security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:7661 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2026:7443 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- WID-SEC-2026-0607 CPython: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Oct 6, 2026
- SUSE-SU-2026:4534-1 Security update for python312 SUSE / openSUSE Security Updates · Oct 6, 2026
- SUSE-SU-2026:23743-1 Security update for python311 SUSE / openSUSE Security Updates · Sep 27, 2026
- SUSE-SU-2026:1117-1 Security update for python311 SUSE / openSUSE Security Updates · Sep 18, 2026
- ELSA-2026-19064 Important: python3.12 security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jul 8, 2026
- ELSA-2026-19019 Important: python3.14 security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jul 8, 2026
- USN-8509-1 python3.10, python3.12, python3.14 vulnerabilities Ubuntu Security Notices (USN) · Jul 6, 2026
- ALAS2023-2026-1832 Moderate: python3.11 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 22, 2026
- ELSA-2026-19177 Important: python3.12 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 12, 2026
- ELSA-2026-19176 Important: python3.14 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 12, 2026
- ALAS2023-2026-1821 Moderate: python3.12 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 8, 2026
- RLSA-2026:19176 Important: python3.14 security update Rocky Linux Security Advisories · May 30, 2026
- RLSA-2026:19019 Important: python3.14 security update Rocky Linux Security Advisories · May 29, 2026
- RLSA-2026:19064 Important: python3.12 security update Rocky Linux Security Advisories · May 29, 2026
- RLSA-2026:19177 Important: python3.12 security update Rocky Linux Security Advisories · May 28, 2026
- ALAS2023-2026-1674 Low: python3.14 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 13, 2026
- ALAS2023-2026-1600 Moderate: python3.13 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Apr 30, 2026
- RLSA-2026:10950 Important: python3.12 security update Rocky Linux Security Advisories · Apr 28, 2026
- ELSA-2026-10950 Important: python3.12 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Apr 27, 2026
- openSUSE-SU-2026:20517-1 Security update for python313 SUSE / openSUSE Security Updates · Apr 22, 2026
- SUSE-SU-2026:21178-1 Security update for python313 SUSE / openSUSE Security Updates · Apr 22, 2026
- SUSE-SU-2026:21104-1 Security update for python313 SUSE / openSUSE Security Updates · Apr 17, 2026
- SUSE-SU-2026:1354-1 Security update for python313 SUSE / openSUSE Security Updates · Apr 16, 2026
- SUSE-SU-2026:1349-1 Security update for python311 SUSE / openSUSE Security Updates · Apr 16, 2026
- ALAS2023-2026-1583 Important: python3.9 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Apr 13, 2026
- openSUSE-SU-2026:10522-1 python315-3.15.0~a8-1.1 on GA media SUSE / openSUSE Security Updates · Apr 10, 2026
- SUSE-SU-2026:20951-1 Security update for python311 SUSE / openSUSE Security Updates · Apr 8, 2026
- SUSE-SU-2026:20956-1 Security update for python311 SUSE / openSUSE Security Updates · Apr 8, 2026
- SUSE-SU-2026:0971-1 Security update for python39 SUSE / openSUSE Security Updates · Mar 24, 2026
- openSUSE-SU-2026:10404-1 python310-3.10.20-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10405-1 python314-3.14.3-3.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10394-1 python313-3.13.12-2.1 on GA media SUSE / openSUSE Security Updates · Mar 20, 2026
- openSUSE-SU-2026:10381-1 python311-3.11.15-2.1 on GA media SUSE / openSUSE Security Updates · Mar 18, 2026
- openSUSE-SU-2026:10377-1 python312-3.12.13-2.1 on GA media SUSE / openSUSE Security Updates · Mar 17, 2026
References
- https://github.com/python/cpython/issues/145506 issue-tracking
- https://github.com/python/cpython/pull/145507 patch
- https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e patch
- https://github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e patch
- https://github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86 patch
- https://github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9 patch
- https://github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd patch
- https://github.com/python/cpython/commit/c70adad78caeeea33f92f560ecb93331ca11bf66 patch