Advisory

GHSA-hvj5-mvw9-93j3

Also known as: CVE-2024-2912, PYSEC-2026-296

Summary

Insecure deserialization in BentoML

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-04-16 00:30 UTC
Modified
2026-10-27 15:30 UTC

Affected packages and fixes

bentoml

PyPI · All systems

Affected

  • introduced 0, fixed 1.2.5 (ecosystem)

Fixed versions

1.2.5

Fix

  • Fixed version 1.2.5
    pip install --upgrade bentoml==1.2.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences