Critical

Insecure deserialization in BentoML

  • Disclosed: 16.04.2024
  • Updated: 11.10.2026 12:20

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) bentoml < 1.2.5 1.2.5

References

CVSS score 9.8/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-1188
Platform
Python (PyPI)
Package
bentoml
Disclosed
16.04.2024
Updated
11.10.2026 12:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-hvj5-mvw9-93j3 - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-296 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: bentoml

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (17) in the archive
Total entries
17
First → latest
04.2024 07.2026
Without a fix
5
Exploited in attacks
0

Severity breakdown

  • Critical 5
  • High 10
  • Medium 2

Disclosures per year

  1. 2024: 1
  2. 2025: 7
  3. 2026: 9
Severity:
  1. High · 8.8 CVE-2026-35044 < 1.4.38 1.4.38
  2. High · 7.8 CVE-2026-35043 < 1.4.38 1.4.38
  3. High · 7.4 CVE-2026-24123 < 1.4.34 1.4.34
  4. Critical · 9.9 CVE-2025-54381 >= 1.4.0, < 1.4.19 1.4.19
  5. Critical · 9.8 CVE-2025-27520 >= 1.3.4, < 1.4.3 1.4.3
  6. High · 7.5 CVE-2024-9056 <= 1.4.5 no fix
  7. Critical · 9.8 CVE-2024-9070 <= 1.4.5 no fix
  8. High · 7.5 ghsa-hh3j-9m59-p8vc <= 1.3.9 no fix
  9. Insecure deserialization in BentoML this entry
    Critical · 9.8 CVE-2024-2912 < 1.2.5 1.2.5

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.