{"answers":{"affected":"5 open source packages ship an affected version, including keras.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12479 exists.","fix":"Upgrade keras to a fixed version for your release line: 3.12.3 or 3.15.0.","what":"CVE-2026-12479 is a medium-severity path traversal vulnerability in keras-team/keras, published on 22 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-12479 and fix it if it is affected.\n\nWhat it is: CVE-2026-12479 is a medium-severity path traversal vulnerability in keras-team/keras, published on 22 Jun 2026. It can only be exploited from the same machine or local network, 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-2026-12479 exists.\n\nAffected packages and fixed versions:\n- keras (PyPI): affected all versions; fixed in 3.12.3, 3.15.0\n- keras (PyPI): affected all versions; fixed in 3.12.3\n- keras (PyPI): affected all versions; fixed in 3.12.3\n- keras (PyPI): affected from 3.13.0; fixed in 3.15.0\n- keras (PyPI): affected from 3.13.0; fixed in 3.15.0\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-12479/ (Markdown: https://insights.sbomify.com/CVE-2026-12479/index.md)","id":"CVE-2026-12479","markdown":"https://insights.sbomify.com/CVE-2026-12479/index.md","name":"CVE-2026-12479","record":{"aliases":["DEBIAN-CVE-2026-12479","GHSA-gh82-f9x8-5frx","MINI-q5h4-6hv4-cj9r","PYSEC-2026-3632","UBUNTU-CVE-2026-12479"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Keras deep learning library","requires_auth":"none","summary":"Attackers can exploit path traversal in Keras model saving to write files to arbitrary locations, potentially leading to code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A path traversal vulnerability exists in keras-team/keras version 3.14.0, specifically in the `DiskIOStore.make` method within the Keras 3 model saving and loading library. This vulnerability arises from the improper handling of user-provided layer names, which are used to construct directory paths without sanitizing for parent directory components (`..`). While forward slashes (`/`) are restricted in layer names, directory traversal sequences are not. This allows an attacker to craft a malicious Keras model that, when saved or loaded, can escape the intended temporary working directory and perform unauthorized file system operations, such as creating directories or writing files in arbitrary locations.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path Traversal in keras-team/keras","id":"CVE-2026-12479","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":1,"next":{"headline":"Arbitrary HDF5 File Read via Virtual Dataset Bypass in keras-team/keras","id":"CVE-2026-12480"},"packages":[{"ecosystem":"PyPI","fixed":["3.12.3","3.15.0"],"introduced":["0","3.13.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"PYSEC-2026-3632"},{"ecosystem":"PyPI","fixed":["3.12.3"],"introduced":["0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-gh82-f9x8-5frx"},{"ecosystem":"PyPI","fixed":["3.12.3"],"introduced":["0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-gh82-f9x8-5frx"},{"ecosystem":"PyPI","fixed":["3.15.0"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-gh82-f9x8-5frx"},{"ecosystem":"PyPI","fixed":["3.15.0"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-gh82-f9x8-5frx"}],"prev":{"headline":"Libsoup: incomplete fix for cve-2026-0716: out-of-bounds read in libsoup websocket frame processing (unmasked path)","id":"CVE-2026-12478"},"products":["keras-team/keras"],"published":"2026-06-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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-06-22","vendors":["keras-team"]},"summary":"Attackers can exploit path traversal in Keras model saving to write files to arbitrary locations, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2026-12479/"}