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

- Severity: Critical 10.0 (CVSS:3.1, scored by @huntr_ai) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.51%, higher than 75% of CVEs (2026-12-01)
- Published: 2024-04-16T00:00:15.110Z
- Modified: 2026-10-27T15:30:04.261Z
- Also known as: GHSA-hvj5-mvw9-93j3, PYSEC-2026-296
- Weaknesses: CWE-1188
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- bentoml bentoml/bentoml: from 1.2.0 up to 1.2.4
- bentoml bentoml: from 1.2.0 up to 1.2.4
- bentoml (PyPI): before 1.2.5

## Every score

- @huntr_ai: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/349a1cce-6bb5-4345-82a5-bf7041b65a68> (web)
- <https://github.com/bentoml/bentoml/commit/fd70379733c57c6368cc022ac1f841b7b426db7b> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-2912> (advisory)
- <https://github.com/bentoml/BentoML> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-296.yaml> (web)
- <https://pypi.org/project/bentoml> (package, web)
- <https://github.com/advisories/GHSA-hvj5-mvw9-93j3> (advisory)

## Sources

- CVE List: [CVE-2024-2912](https://www.cve.org/CVERecord?id=CVE-2024-2912), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-hvj5-mvw9-93j3](https://github.com/advisories/GHSA-hvj5-mvw9-93j3), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2024-2912](https://nvd.nist.gov/vuln/detail/CVE-2024-2912), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-296](https://osv.dev/vulnerability/PYSEC-2026-296), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-2912 · Whole record: https://cve.day/CVE-2024-2912.json · Rebuilt by cve.day 2026-11-25T22:58:39.239Z
