INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-2912

Insecure deserialization in BentoML

CVE-2024-2912 ยท 2024-04-16 critical

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
bentoml (PyPI)
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.5% chance of exploitation in 30 days

How it works, in short

A crafted serialized object posted to any BentoML endpoint is deserialized by the server, running attacker-chosen OS commands. (Our summary, written by a model. The source text is below.)

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.