{"answers":{"affected":"3 open source packages ship an affected version, including bentoml.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-2912 exists.","fix":"Upgrade bentoml to 1.2.5 or later.","what":"CVE-2024-2912 is a critical unsafe deserialization vulnerability in bentoml/bentoml, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-2912 and fix it if it is affected.\n\nWhat it is: CVE-2024-2912 is a critical unsafe deserialization vulnerability in bentoml/bentoml, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-2912 exists.\n\nAffected packages and fixed versions:\n- bentoml (PyPI): affected all versions; fixed in 1.2.5\n- bentoml (PyPI): affected all versions; fixed in 1.2.5\n- bentoml (PyPI): affected all versions; fixed in 1.2.5\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-2912/ (Markdown: https://insights.sbomify.com/CVE-2024-2912/index.md)","id":"CVE-2024-2912","markdown":"https://insights.sbomify.com/CVE-2024-2912/index.md","name":"CVE-2024-2912","record":{"aliases":["GHSA-hvj5-mvw9-93j3","PYSEC-2026-296"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"BentoML machine learning framework","requires_auth":"none","summary":"Attackers can execute arbitrary code on servers running BentoML by sending crafted serialized objects to valid endpoints.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"description":"An insecure deserialization vulnerability exists in the BentoML framework, allowing remote code execution (RCE) by sending a specially crafted POST request. By exploiting this vulnerability, attackers can execute arbitrary commands on the server hosting the BentoML application. The vulnerability is triggered when a serialized object, crafted to execute OS commands upon deserialization, is sent to any valid BentoML endpoint. This issue poses a significant security risk, enabling attackers to compromise the server and potentially gain unauthorized access or control.","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":"Insecure Deserialization Leading to RCE in bentoml/bentoml","id":"CVE-2024-2912","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Race Condition Vulnerability in mintplex-labs/anything-llm","id":"CVE-2024-2913"},"packages":[{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"bentoml","purl":null,"source":"GHSA-hvj5-mvw9-93j3"},{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"bentoml","purl":"pkg:pypi/bentoml","source":"GHSA-hvj5-mvw9-93j3"},{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"bentoml","purl":"pkg:pypi/bentoml","source":"PYSEC-2026-296"}],"prev":{"headline":"Tianjin PubliCMS cross-site request forgery","id":"CVE-2024-2911"},"products":["bentoml/bentoml"],"published":"2024-04-16","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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["bentoml"]},"summary":"Attackers can execute arbitrary code on servers running BentoML by sending crafted serialized objects to valid endpoints.","url":"https://insights.sbomify.com/CVE-2024-2912/"}