{"id":"DHI-6mqg-w26n-b2ez-lw45","summary":"The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader…","details":"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.","modified":"2026-11-16T02:34:26.731415811Z","published":"2026-11-11T18:48:41Z","upstream":["CVE-2026-2297"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-6mqg-w26n-b2ez-lw45"},{"type":"FIX","url":"https://github.com/python/cpython/pull/145507"},{"type":"FIX","url":"https://github.com/python/cpython/commit/e58e9802b9bec5cdbf48fc9bf1da5f4fda482e86"},{"type":"FIX","url":"https://github.com/python/cpython/commit/c70adad78caeeea33f92f560ecb93331ca11bf66"},{"type":"FIX","url":"https://github.com/python/cpython/commit/a51b1b512de1d56b3714b65628a2eae2b07e535e"},{"type":"FIX","url":"https://github.com/python/cpython/commit/876858c9f65d9ab656c7fa639f268ce7856d89dd"},{"type":"FIX","url":"https://github.com/python/cpython/commit/69ddd9bb2cc4bd69b1565647c18659c6a789ccd9"},{"type":"FIX","url":"https://github.com/python/cpython/commit/482d6f8bdba9da3725d272e8bb4a2d25fb6a603e"},{"type":"WEB","url":"https://github.com/python/cpython/issues/145506"},{"type":"ADVISORY","url":"https://errata.almalinux.org/8/ALSA-2026-10950.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:10950"},{"type":"ADVISORY","url":"https://errata.almalinux.org/9/ALSA-2026-19176.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:19176"},{"type":"ADVISORY","url":"https://errata.almalinux.org/9/ALSA-2026-19177.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:19177"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-2297"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1583.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-4519"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-4224"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-2297"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-1299"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-0865"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-0672"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-15282"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-11468"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1600.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-3644"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1674.html"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1821.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-6019"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1832.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-2297"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-2297"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-10950.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-10950.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-19019.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-19019.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-19064.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-19064.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-19176.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-19176.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-19177.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-19177.html"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-2297"},{"type":"FIX","url":"https://www.cve.org/CVERecord?id=CVE-2026-2297"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:10950"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:19019"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:19064"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:19176"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:19177"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-2297"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-2297"}],"affected":[{"package":{"name":"python3","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/python3"},"versions":["3.12.12-r0","3.12.13-r0","3.12.14-r0","3.12.15-r0","3.12.16-r0"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-6mqg-w26n-b2ez-lw45.json"}},{"package":{"name":"python3","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/python3"},"versions":["3.14.10-r0","3.14.3-r0","3.14.5-r0","3.14.5-r2","3.14.7-r0","3.14.7-r1","3.14.8-r0"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-6mqg-w26n-b2ez-lw45.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"},{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}