CVE-2024-2912: Insecure deserialization in BentoML

CVE-2024-2912 · Severity: critical · CVSS 9.8 · Published 2024-04-16

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.

Technologies: bentoml (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-2912 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-2912 being exploited in the wild.
How severe is CVE-2024-2912?
Critical severity, with a CVSS score of 9.8, published 16 April 2024.
Which products and versions are affected?
bentoml (PyPI) < 1.2.5, ECOSYSTEM:introduced=0,fixed=1.2.5.
Is there a fix for CVE-2024-2912?
Yes. bentoml (PyPI): upgrade to 1.2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-2912?
Check whether you run bentoml (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • bentoml (PyPI): upgrade to 1.2.5 or later
    pip install "bentoml>=1.2.5"

Affected products

  • bentoml (PyPI) < 1.2.5, ECOSYSTEM:introduced=0,fixed=1.2.5

Identifiers

  • CVE-2024-2912
  • GHSA-hvj5-mvw9-93j3
  • PYSEC-2026-296

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.