Skip to content
RCE Disclosed report Intermediate CVE-2024-9070

BentoML deserialization vulnerability

A deserialization vulnerability in BentoML's runner server allows an attacker to execute arbitrary code by setting specific parameters. The vulnerability is triggered when the args-number parameter is greater than 1, leading to automatic deserialization and code execution.

bentoml/bentoml

Originally disclosed on huntr

Critical View original

A deserialization vulnerability exists in BentoML's runner server in bentoml/bentoml versions <=1.3.4.post1. By setting specific parameters, an attacker can execute unauthorized arbitrary code on the server, causing severe harm. The vulnerability is triggered when the args-number parameter is greater than 1, leading to automatic deserialization and arbitrary code execution.

From the GitHub Advisory Database (GHSA-9g44-gwvm-hc44, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the runner server deserialises untrusted input without validation when the args-number parameter exceeds 1.

Impact

An attacker could execute arbitrary code on the server, potentially taking full control.

What the attacker needed

Access to the runner server; set args-number > 1

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a flaw in a machine learning serving tool called BentoML. When the tool receives certain settings, it automatically converts data back into objects without checking if they are safe. An attacker can abuse this to run their own commands on the server, which is very dangerous.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from bentoml/bentoml

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.