---
title: "CVE-2024-2912: Insecure deserialization in BentoML"
url: https://erroneo.us/security/cve/CVE-2024-2912/
description: "CVE-2024-2912 (bentoml (PyPI)): An insecure deserialization vulnerability exists in the BentoML framework, allowing remote code execution (RCE) by sending a…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-04-16
date_modified: 2024-08-01
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-2912"
kev: false
cvss: 10
epss: 0.01509
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-2912: Insecure deserialization in BentoML

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.5% , percentile 74: FIRST’s model estimates a 1.5% chance of exploitation activity in the next 30 days, higher than 74% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes bentoml (PyPI) < 1.2.5, fixed in 1.2.5 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- PyPI `bentoml` < 1.2.5 → fixed: 1.2.5

## Affected products (CVE record)

- bentoml bentoml/bentoml: 1.2.0 <= 1.2.4

## Severity

- @huntr_ai CVSS 3.1: 10 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.51% probability of exploitation activity in the next 30 days; percentile 74.

## Sources

- [GitHub Advisory GHSA-hvj5-mvw9-93j3](https://github.com/advisories/GHSA-hvj5-mvw9-93j3)
- [CVE.org record CVE-2024-2912](https://www.cve.org/CVERecord?id=CVE-2024-2912)
- [NVD entry CVE-2024-2912](https://nvd.nist.gov/vuln/detail/CVE-2024-2912)
- [huntr.com](https://huntr.com/bounties/349a1cce-6bb5-4345-82a5-bf7041b65a68)
- [github.com](https://github.com/bentoml/bentoml/commit/fd70379733c57c6368cc022ac1f841b7b426db7b)

---
Source page: https://erroneo.us/security/cve/CVE-2024-2912/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
