{"answers":{"affected":"3 open source packages ship an affected version, including keras. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-3660 in the wild and no public exploit code.","fix":"Upgrade keras to 2.13.1rc0 or later.","what":"CVE-2024-3660 is a critical vulnerability in tensorflow keras, published on 16 Apr 2024."},"fix_prompt":"Check this codebase for CVE-2024-3660 and fix it if it is affected.\n\nWhat it is: CVE-2024-3660 is a critical vulnerability in tensorflow keras, published on 16 Apr 2024. \nExploitation: There is no known exploitation of CVE-2024-3660 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- keras (PyPI): affected all versions; fixed in 2.13.1rc0\n- keras (PyPI): affected all versions; fixed in 2.13.1rc0\n- keras (PyPI): affected all versions; fixed in 2.13.1rc0\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-2024-3660/ (Markdown: https://insights.sbomify.com/CVE-2024-3660/index.md)","id":"CVE-2024-3660","markdown":"https://insights.sbomify.com/CVE-2024-3660/index.md","name":"CVE-2024-3660","record":{"aliases":["AZL-67629","DEBIAN-CVE-2024-3660","GHSA-x4wf-678h-2pmq","PYSEC-2026-369","UBUNTU-CVE-2024-3660"],"analysis":null,"analysis_generated_by":null,"assigner":"certcc","cpe":[{"product":"keras","vendor":"keras"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A arbitrary code injection vulnerability in TensorFlow's Keras framework (\u003c2.13) allows attackers to execute arbitrary code with the same permissions as the application using a model that allow arbitrary code irrespective of the application.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2025-08-15","github_poc":1,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-15T19:02:47Z","kind":"github_poc","ref":"https://github.com/aaryanbhujang/CVE-2024-3660-PoC","stars":4,"title":"A PoC for CVE-2024-3660. Arbitrary Code Execution in Keras."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Arbitrary code injection vulnerability in Keras framework \u003c 2.13","id":"CVE-2024-3660","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"DHCP routing options can manipulate interface-based VPN traffic","id":"CVE-2024-3661"},"packages":[{"ecosystem":"PyPI","fixed":["2.13.1rc0"],"introduced":["0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-x4wf-678h-2pmq"},{"ecosystem":"PyPI","fixed":["2.13.1rc0"],"introduced":["0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-x4wf-678h-2pmq"},{"ecosystem":"PyPI","fixed":["2.13.1rc0"],"introduced":["0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"PYSEC-2026-369"}],"prev":{"headline":"Command injection in KAON AR2140 routers","id":"CVE-2024-3659"},"products":["keras"],"published":"2024-04-16","related":[{"cvss_score":8.8,"headline":"Deserialization of Untrusted Data in keras-team/keras","id":"CVE-2026-12481","kev_date_added":null,"published":"2026-07-03"},{"cvss_score":8.8,"headline":"Safe Mode Bypass in keras-team/keras","id":"CVE-2026-1462","kev_date_added":null,"published":"2026-04-13"},{"cvss_score":8.6,"headline":"Arbitrary Code execution in Keras Safe Mode","id":"CVE-2025-9906","kev_date_added":null,"published":"2025-09-19"},{"cvss_score":8.6,"headline":"Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.","id":"CVE-2025-8747","kev_date_added":null,"published":"2025-08-11"},{"cvss_score":8.1,"headline":"Path Traversal in keras-team/keras","id":"CVE-2026-11816","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":7.3,"headline":"Arbitary Code execution in Keras load_model()","id":"CVE-2025-9905","kev_date_added":null,"published":"2025-09-19"}],"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":"US public information, NVD API terms","name":"NVD"},{"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["tensorflow"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-3660/"}