{"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-12484 exists.","fix":"Upgrade keras to a fixed version for your release line: 3.12.3 or 3.15.0.","what":"CVE-2026-12484 is a high-severity unsafe deserialization vulnerability in keras-team/keras, published on 19 Jul 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-12484 and fix it if it is affected.\n\nWhat it is: CVE-2026-12484 is a high-severity unsafe deserialization vulnerability in keras-team/keras, published on 19 Jul 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-12484 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-12484/ (Markdown: https://insights.sbomify.com/CVE-2026-12484/index.md)","id":"CVE-2026-12484","markdown":"https://insights.sbomify.com/CVE-2026-12484/index.md","name":"CVE-2026-12484","record":{"aliases":["DEBIAN-CVE-2026-12484","GHSA-v2w2-w228-c444","MINI-x5m7-w2pq-c3wv","PYSEC-2026-3634","UBUNTU-CVE-2026-12484"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Keras deep learning library","requires_auth":"none","summary":"Attackers can execute arbitrary code by providing malicious PyTorch pickle data to the TorchModuleWrapper.from_config method in Keras.","user_interaction":"required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"A vulnerability in keras-team/keras version 3.15.0 allows unsafe deserialization of attacker-controlled PyTorch pickle data through the public `keras.layers.TorchModuleWrapper.from_config` method. This method invokes `torch.load(..., weights_only=False)` without requiring an explicit unsafe opt-in, such as a `safe_mode=False` parameter. When called outside a `SafeModeScope(True)` context, the absence of an ambient safe mode state permits unsafe deserialization by default. This issue can lead to arbitrary code execution if untrusted Keras layer configurations are processed using this method. The vulnerability arises because the method does not enforce safe deserialization practices unless explicitly guarded by Keras safe mode.","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":"Unsafe Deserialization in keras.layers.TorchModuleWrapper.from_config","id":"CVE-2026-12484","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":5,"n_references":1,"next":{"headline":"GeoVision GV-I/O Box DVRSearch buffer overflow vulnerabilities in CMD_IP_SET command","id":"CVE-2026-12485"},"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-3634"},{"ecosystem":"PyPI","fixed":["3.12.3"],"introduced":["0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-v2w2-w228-c444"},{"ecosystem":"PyPI","fixed":["3.12.3"],"introduced":["0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-v2w2-w228-c444"},{"ecosystem":"PyPI","fixed":["3.15.0"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-v2w2-w228-c444"},{"ecosystem":"PyPI","fixed":["3.15.0"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-v2w2-w228-c444"}],"prev":{"headline":"LearnDash LMS \u003c= 5.1.5 - Authenticated (Subscriber+) Arbitrary File Upload via Assignment Upload Handler","id":"CVE-2026-12483"},"products":["keras-team/keras"],"published":"2026-07-19","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":"total"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["keras-team"]},"summary":"Attackers can execute arbitrary code by providing malicious PyTorch pickle data to the TorchModuleWrapper.from_config method in Keras.","url":"https://insights.sbomify.com/CVE-2026-12484/"}