Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. bentoml
  4. ›
  5. CVE-2024-2912

CVE-2024-2912: Insecure deserialization in BentoML

April 16, 2024 (updated October 27, 2026)

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2024-2912 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.5

Fixed versions

  • 1.2.5

Solution

Upgrade to version 1.2.5 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1188: Initialization of a Resource with an Insecure Default

Source file

pypi/bentoml/CVE-2024-2912.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:58 +0000.