{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-2297 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-2297 is a medium-severity vulnerability in CPython, published on 4 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-2297 and fix it if it is affected.\n\nWhat it is: CVE-2026-2297 is a medium-severity vulnerability in CPython, published on 4 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-2297 in the wild and no public exploit code.\n\nAffected product: CPython. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-2297/ (Markdown: https://insights.sbomify.com/CVE-2026-2297/index.md)","id":"CVE-2026-2297","markdown":"https://insights.sbomify.com/CVE-2026-2297/index.md","name":"CVE-2026-2297","record":{"aliases":["ALPINE-CVE-2026-2297","AZL-79413","AZL-79457","AZL-79491","BELL-CVE-2026-2297","DEBIAN-CVE-2026-2297","ECHO-1808-4c87-682f","GHSA-86jh-grmm-2v3h","MINI-84x5-v9mj-62q4","MINI-94hc-h99r-hm9j","MINI-crwg-5qhf-pfcr","MINI-jqmp-hpqx-9675","MINI-m865-fc4p-9p2g","PSF-2026-9","SUSE-SU-2026:0971-1","UBUNTU-CVE-2026-2297","openSUSE-SU-2026:10377-1","openSUSE-SU-2026:10381-1","openSUSE-SU-2026:10394-1","openSUSE-SU-2026:10405-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python standard library","requires_auth":"low_privilege","summary":"Attackers can bypass sys.audit security monitoring when loading legacy .pyc files because the loader fails to trigger the required audit event.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"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.","ecosystems":["openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SourcelessFileLoader does not use io.open_code()","id":"CVE-2026-2297","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":7,"n_references":8,"next":{"headline":"Command injection in Marketing Cloud Engagement","id":"CVE-2026-2298"},"packages":[{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.9.25-150300.4.96.1"],"introduced":["0"],"last_affected":[],"package":"python39","purl":"pkg:rpm/opensuse/python39\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2026:0971-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.9.25-150300.4.96.1"],"introduced":["0"],"last_affected":[],"package":"python39-core","purl":"pkg:rpm/opensuse/python39-core\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2026:0971-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.9.25-150300.4.96.1"],"introduced":["0"],"last_affected":[],"package":"python39-documentation","purl":"pkg:rpm/opensuse/python39-documentation\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2026:0971-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.11.15-2.1"],"introduced":["0"],"last_affected":[],"package":"python311","purl":"pkg:rpm/opensuse/python311\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10381-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.12.13-2.1"],"introduced":["0"],"last_affected":[],"package":"python312","purl":"pkg:rpm/opensuse/python312\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10377-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.13.12-2.1"],"introduced":["0"],"last_affected":[],"package":"python313","purl":"pkg:rpm/opensuse/python313\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10394-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.14.3-3.1"],"introduced":["0"],"last_affected":[],"package":"python314","purl":"pkg:rpm/opensuse/python314\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10405-1"}],"prev":{"headline":"Code injection in Product Addons for Woocommerce – Product Options with Custom Fields","id":"CVE-2026-2296"},"products":["CPython"],"published":"2026-03-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["Python Software Foundation"]},"summary":"Attackers can bypass sys.audit security monitoring when loading legacy .pyc files because the loader fails to trigger the required audit event.","url":"https://insights.sbomify.com/CVE-2026-2297/"}