{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8291 exists.","fix":"Upgrade libpython to a fixed version for your release line: 3.9.24, 3.10.19, 3.11.14 or 3.12.12.","what":"CVE-2025-8291 is a medium-severity vulnerability in CPython, published on 7 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-8291 and fix it if it is affected.\n\nWhat it is: CVE-2025-8291 is a medium-severity vulnerability in CPython, published on 7 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8291 exists.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, 3.14.1\n- python (Bitnami): affected all versions; fixed in 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, 3.14.1\n- python-min (Bitnami): affected all versions; fixed in 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, 3.14.1\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-2025-8291/ (Markdown: https://insights.sbomify.com/CVE-2025-8291/index.md)","id":"CVE-2025-8291","markdown":"https://insights.sbomify.com/CVE-2025-8291/index.md","name":"CVE-2025-8291","record":{"aliases":["ALSA-2025:23323","ALSA-2025:23940","AZL-110507","AZL-68318","AZL-68321","BIT-libpython-2025-8291","BIT-python-2025-8291","BIT-python-min-2025-8291","CLEANSTART-2026-KH84979","DEBIAN-CVE-2025-8291","ECHO-37a0-326b-4e55","GHSA-49g5-f6qw-8mm7","GHSA-hhv7-p4pg-wm6p","MINI-2cgr-58w5-438j","MINI-f23m-2chc-2rhj","MINI-mhxg-2jw6-23p3","MINI-mw39-8f9f-rcgh","MINI-w4ww-vmw7-42mf","OESA-2025-2575","OESA-2025-2576","OESA-2025-2577","OESA-2025-2578","OESA-2025-2706","PSF-2025-12","RHSA-2025:23323","RHSA-2025:23940","RHSA-2026:0353","RHSA-2026:0354","RHSA-2026:0355","RLSA-2025:23323","RLSA-2025:23940","SUSE-SU-2025:4313-1","UBUNTU-CVE-2025-8291"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"Python zipfile module","requires_auth":"none","summary":"Attackers can craft ZIP files causing inconsistent parsing between Python and other tools, potentially leading to security bypasses or logic errors.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-1285","name":"Improper Validation of Specified Index, Position, or Offset in Input"}],"description":"The 'zipfile' module would not check the validity of the ZIP64 End of\nCentral Directory (EOCD) Locator record offset value would not be used to\nlocate the ZIP64 EOCD record, instead the ZIP64 EOCD record would be\nassumed to be the previous record in the ZIP archive. This could be abused\nto create ZIP archives that are handled differently by the 'zipfile' module\ncompared to other ZIP implementations.\n\nRemediation maintains this behavior, but checks that the offset specified\nin the ZIP64 EOCD Locator record matches the expected value.","ecosystems":["AlmaLinux:10","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.4::crb","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::crb","Rocky Linux:10","Rocky Linux:9","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP7","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ZIP64 End of Central Directory (EOCD) Locator record offset not checked","id":"CVE-2025-8291","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"other","year":"2025"},"n_packages":81,"n_references":10,"next":{"headline":"Use after free in Chrome","id":"CVE-2025-8292"},"packages":[{"ecosystem":"Bitnami","fixed":["3.9.24","3.10.19","3.11.14","3.12.12","3.13.10","3.14.1"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2025-8291"},{"ecosystem":"Bitnami","fixed":["3.9.24","3.10.19","3.11.14","3.12.12","3.13.10","3.14.1"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2025-8291"},{"ecosystem":"Bitnami","fixed":["3.9.24","3.10.19","3.11.14","3.12.12","3.13.10","3.14.1"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2025-8291"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/almalinux/python-unversioned-command","source":"ALSA-2025:23940"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/almalinux/python3.12","source":"ALSA-2025:23323"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/almalinux/python3.12-debug","source":"ALSA-2025:23323"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/almalinux/python3.12-devel","source":"ALSA-2025:23323"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-idle","purl":"pkg:rpm/almalinux/python3.12-idle","source":"ALSA-2025:23323"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/almalinux/python3.12-libs","source":"ALSA-2025:23323"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-test","purl":"pkg:rpm/almalinux/python3.12-test","source":"ALSA-2025:23323"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/almalinux/python3.12-tkinter","source":"ALSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/redhat/python-unversioned-command","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/redhat/python3","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/redhat/python3-debug","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/redhat/python3-devel","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/redhat/python3-libs","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/redhat/python3-test","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3.12-debuginfo","purl":"pkg:rpm/redhat/python3.12-debuginfo","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:3.12.12-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"python3.12-debugsource","purl":"pkg:rpm/redhat/python3.12-debugsource","source":"RHSA-2025:23940"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-debuginfo","purl":"pkg:rpm/redhat/python3.12-debuginfo","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-debugsource","purl":"pkg:rpm/redhat/python3.12-debugsource","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/redhat/python3.12-devel","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/redhat/python3.12-libs","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/redhat/python3.12-tkinter","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/redhat/python3.12-debug","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-debuginfo","purl":"pkg:rpm/redhat/python3.12-debuginfo","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-debugsource","purl":"pkg:rpm/redhat/python3.12-debugsource","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-idle","purl":"pkg:rpm/redhat/python3.12-idle","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-test","purl":"pkg:rpm/redhat/python3.12-test","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/redhat/python3.12-tkinter","source":"RHSA-2025:23323"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.12.9-2.el10_0.4"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/redhat/python-unversioned-command","source":"RHSA-2026:0353"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.12.9-2.el10_0.4"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/redhat/python3","source":"RHSA-2026:0353"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.12.9-2.el10_0.4"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/redhat/python3-debug","source":"RHSA-2026:0353"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.12.9-2.el10_0.4"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/redhat/python3-devel","source":"RHSA-2026:0353"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:3.12.9-2.el10_0.4"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2026:0353"}],"prev":{"headline":"List Subpages \u003c= 1.0.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via title Parameter","id":"CVE-2025-8290"},"products":["CPython"],"published":"2025-10-07","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-31","vendors":["Python Software Foundation"]},"summary":"Attackers can craft ZIP files causing inconsistent parsing between Python and other tools, potentially leading to security bypasses or logic errors.","url":"https://insights.sbomify.com/CVE-2025-8291/"}