BentoMLGHSA-hvj5-mvw9-93j3
Insecure deserialization in BentoML
Fix: upgrade to 1.2.5 or later
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| bentoml PyPI | < 1.2.5 | 1.2.5 |
Details and references
- CVSS 3.0
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-1188
- Also known as
- CVE-2024-2912, PYSEC-2026-296