CVE-2024-2912
Insecure Deserialization Leading to RCE in bentoml/bentoml
Also known as GHSA-hvj5-mvw9-93j3, PYSEC-2026-296
Mitigation
- Upgrade bentoml to 1.2.5 or later.
Who should check
- Projects that depend on PyPI package bentoml (< 1.2.5)
- Anyone running bentoml/bentoml >= 1.2.0, <= 1.2.4
Vulnerability facts
- Affected
- bentoml < 1.2.5
- Fixed in
- 1.2.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 2.24% chance of exploitation in 30 days (percentile 84, 2026-11-26)
- CWE
- CWE-1188
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI bentoml | < 1.2.5 | 1.2.5 | osv |
| bentoml/bentoml | >= 1.2.0, <= 1.2.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-2912. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-2912.md Affected: bentoml < 1.2.5 Fixed in: 1.2.5 Steps: 1. Search this machine and project for bentoml (PyPI), bentoml/bentoml: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-2912 being exploited?
There is no confirmed exploitation: CVE-2024-2912 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-2912?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-2912?
bentoml < 1.2.5.
Is there a fix for CVE-2024-2912?
Yes. Fixed in 1.2.5. Upgrade bentoml to 1.2.5 or later.
How do I check if I'm affected by CVE-2024-2912?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.