{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2026-12345 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.12.16, 3.13.18 or 3.14.9.","what":"CVE-2026-12345 is a medium-severity vulnerability in CPython, published on 29 Sep 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-12345 and fix it if it is affected.\n\nWhat it is: CVE-2026-12345 is a medium-severity vulnerability in CPython, published on 29 Sep 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-12345 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.12.16, 3.13.18, 3.14.9\n- python (Bitnami): affected all versions; fixed in 3.12.16, 3.13.18, 3.14.9\n- python-min (Bitnami): affected all versions; fixed in 3.12.16, 3.13.18, 3.14.9\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-12345/ (Markdown: https://insights.sbomify.com/CVE-2026-12345/index.md)","id":"CVE-2026-12345","markdown":"https://insights.sbomify.com/CVE-2026-12345/index.md","name":"CVE-2026-12345","record":{"aliases":["ALPINE-CVE-2026-12345","AZL-105684","AZL-105912","BELL-CVE-2026-12345","BIT-libpython-2026-12345","BIT-python-2026-12345","BIT-python-min-2026-12345","CLSA-2026-1791359868","CLSA-2026-1792794952","DEBIAN-CVE-2026-12345","ECHO-1804-7ef4-53eb","MINI-cg9g-4346-48pp","PSF-2026-42","RHSA-2026:74870","RHSA-2026:74922","RHSA-2026:75119","UBUNTU-CVE-2026-12345"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python standard library","requires_auth":"none","summary":"Attackers can exploit a race condition in tempfile cleanup to delete files or reset permissions outside the temporary directory via symlink attacks.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. An attacker who can modify the tree during cleanup can replace a directory with a symbolic link, causing files outside of the temporary directory to be deleted or have their permissions and file flags reset, with the privileges of the process performing the cleanup. Note that platforms where shutil.rmtree.avoids_symlink_attacks is false, remain affected, and file flags may still be reset outside of the tree on all platforms.","ecosystems":["Bitnami","Red Hat:hummingbird:1"],"exploits":{"exploitdb":0,"first_seen":"2026-08-14","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-14T17:51:15Z","kind":"github_poc","ref":"https://github.com/zahidec0de/CVE-2026-12345-poc","stars":0,"title":"Proof of Concept (PoC) for CVE-2026-64638, a reflected XSS in WordPress Core \u003c 7.0.3."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory","id":"CVE-2026-12345","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":35,"n_references":9,"next":{"headline":"Address Bar Spoofing in Arc Search for Android (window.open race condition)","id":"CVE-2026-12348"},"packages":[{"ecosystem":"Bitnami","fixed":["3.12.16","3.13.18","3.14.9"],"introduced":["0","3.13.0","3.14.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2026-12345"},{"ecosystem":"Bitnami","fixed":["3.12.16","3.13.18","3.14.9"],"introduced":["0","3.13.0","3.14.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2026-12345"},{"ecosystem":"Bitnami","fixed":["3.12.16","3.13.18","3.14.9"],"introduced":["0","3.13.0","3.14.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2026-12345"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/redhat/python-unversioned-command","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/redhat/python3","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/redhat/python3-debug","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/redhat/python3-devel","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/redhat/python3-libs","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/redhat/python3-test","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.15-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2026:74922"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.15-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/redhat/python3.12-debug","source":"RHSA-2026:74922"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.15-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/redhat/python3.12-devel","source":"RHSA-2026:74922"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.15-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-idle","purl":"pkg:rpm/redhat/python3.12-idle","source":"RHSA-2026:74922"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.15-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/redhat/python3.12-libs","source":"RHSA-2026:74922"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.15-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-test","purl":"pkg:rpm/redhat/python3.12-test","source":"RHSA-2026:74922"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.15-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/redhat/python3.12-tkinter","source":"RHSA-2026:74922"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13","purl":"pkg:rpm/redhat/python3.13","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-debug","purl":"pkg:rpm/redhat/python3.13-debug","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-devel","purl":"pkg:rpm/redhat/python3.13-devel","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-freethreading","purl":"pkg:rpm/redhat/python3.13-freethreading","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-freethreading-debug","purl":"pkg:rpm/redhat/python3.13-freethreading-debug","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-idle","purl":"pkg:rpm/redhat/python3.13-idle","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-libs","purl":"pkg:rpm/redhat/python3.13-libs","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-test","purl":"pkg:rpm/redhat/python3.13-test","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.16-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-tkinter","purl":"pkg:rpm/redhat/python3.13-tkinter","source":"RHSA-2026:75119"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14","purl":"pkg:rpm/redhat/python3.14","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading","purl":"pkg:rpm/redhat/python3.14-freethreading","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-debug","purl":"pkg:rpm/redhat/python3.14-freethreading-debug","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-devel","purl":"pkg:rpm/redhat/python3.14-freethreading-devel","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-idle","purl":"pkg:rpm/redhat/python3.14-freethreading-idle","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-libs","purl":"pkg:rpm/redhat/python3.14-freethreading-libs","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-test","purl":"pkg:rpm/redhat/python3.14-freethreading-test","source":"RHSA-2026:74870"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.8-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-tkinter","purl":"pkg:rpm/redhat/python3.14-freethreading-tkinter","source":"RHSA-2026:74870"}],"prev":{"headline":"IBM MQ Denial of Service","id":"CVE-2026-12343"},"products":["CPython"],"published":"2026-09-29","related":[],"sources":[{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-26","vendors":["Python Software Foundation"]},"summary":"Attackers can exploit a race condition in tempfile cleanup to delete files or reset permissions outside the temporary directory via symlink attacks.","url":"https://insights.sbomify.com/CVE-2026-12345/"}