CVE-2024-9070: BentoML deserialization vulnerability
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 bentomlThen 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-numberequal to 1. This one is the runner server withargs-numbergreater 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
Read for this analysis:
- https://nvd.nist.gov/vuln/detail/CVE-2024-9070
- https://huntr.com/bounties/7be6fc22-be18-44ee-a001-ac7158d5e1a5
- https://github.com/bentoml/BentoML/blob/a6f5f937be6ec278f3d4f3bbc6f3c8f9564820d7/src/bentoml/_internal/server/runner_app.py#L297
- https://github.com/bentoml/BentoML/blob/v1.4.5/src/bentoml/_internal/server/runner_app.py#L301
- https://github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-295.yaml
- https://pypi.org/project/bentoml
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 entriesCVE-2026-44345
BentoML Dockerfile command injection via docker.base_image (sister of pending GHSA-w2pm-x38x-jp44 / CVE-2026-33744 / CVE-2026-35043)
high8.8May 11, 2026CVE-2026-44346
Dockerfile command injection via envs[*].name in bentofile.yaml (sibling fix-bypass of CVE-2026-33744 and CVE-2026-35043)
high8.8May 11, 2026CVE-2026-40610
BentoML has Information Disclosure in `bentoml build` via symlink traversal in the build context
medium5.5May 7, 2026CVE-2026-35043
BentoML: Command Injection in cloud deployment setup script
high7.8Apr 3, 2026CVE-2026-35044
BentoML: SSTI via Unsandboxed Jinja2 in Dockerfile Generation
high8.8Apr 3, 2026CVE-2026-33744
BentoML has Dockerfile Command Injection via system_packages in bentofile.yaml
high7.8Mar 26, 2026
