NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · BentoML

CVE-2024-9070: BentoML deserialization vulnerability

criticalCVSS 3.0 9.8GHSA-9g44-gwvm-hc44

BentoML's runner server deserializes request data without validation when the `args-number` request parameter is greater than 1, so an unauthenticated attacker can run code on the server. The advisory's affected range runs through 1.4.5 and lists no patched version. Do not expose runner servers to untrusted networks.

Published Mar 20, 2025 · Updated Oct 27, 2026 · Analysis Nov 1, 2026

What an attacker can do

The runner server in src/bentoml/_internal/server/runner_app.py reads an args-number header. When it is greater than 1, the server deserializes the request's arguments automatically. The advisory states that this leads to arbitrary code execution, and the vector is CWE-502 (deserialization of untrusted data), scored 9.8: network, no privileges, no user interaction.

An attacker sends one crafted HTTP request to the runner port and the code runs as the BentoML process. From there they can read model files, environment variables and cloud credentials, and move deeper. This is the multi-argument sibling of the single-argument case in CVE-2025-32375, where args-number is 1. The advisory text names version 1.3.4.post1 as the one tested but the affected range was later extended to 1.4.5. The listed range suggests the code path still existed in 1.4.5, but the sources do not say whether a later release fixed it.

Who is affected

The bentoml package on PyPI at version 1.4.5 and earlier per the advisory's package range (the original text names <= 1.3.4.post1). The exposed component is the runner server, which you may start with bentoml start-runner-server. Check your version:

pip show bentoml

Then check whether the runner server port is reachable from untrusted hosts.

bentoml

Ecosystem
PyPI
Affected
<= 1.4.5
Fixed in
No patched version yet
Check
pip show bentoml

How to fix it

The advisory lists no patched version. The related single-argument flaw CVE-2025-32375 is listed as fixed in 1.4.8, but the sources I read do not say whether 1.4.8 also closes the args-number greater than 1 path. Check the BentoML release notes before relying on it. The sources give no workaround. General steps: keep runner servers on a private network reachable only by the BentoML API server, and firewall their ports from everything else.

How to tell if you were hit

Look in runner server access logs for POST requests with an args-number header above 1 from addresses other than your own API server. On the host, look for child processes of the runner (sh, curl, wget, nc), new outbound connections and changed files. If you find a hit, rotate any secrets the process could read.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Questions

Is there a patched BentoML version for CVE-2024-9070?

The advisory lists none, and the affected range runs through 1.4.5. Check the release notes of newer versions.

How does this differ from CVE-2025-32375 and CVE-2025-27520?

All three are BentoML deserialization flaws. CVE-2025-32375 is the runner server with args-number equal to 1. This one is the runner server with args-number greater than 1. CVE-2025-27520 is in the main service path.

Is it exploited in the wild?

No source says so and it is not in the KEV catalog. EPSS is 0.0093.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More BentoML vulnerabilities

All BentoML entries