CVE-2024-9056: BentoML Denial of Service (DoS) via Multipart Boundary
BentoML model servers can be taken offline by an unauthenticated HTTP request with extra characters, such as dashes, appended to the multipart boundary. The server processes each character and exhausts resources. The advisory lists BentoML up to 1.4.5 as vulnerable and names no patched release.
Published Mar 20, 2025 · Updated Oct 15, 2025 · Analysis Nov 1, 2026
What an attacker can do
The report names BentoML v1.3.4post1. The advisory references the file-upload code in src/bentoml/_internal/io_descriptors/file.py (line 293 in v1.4.5), which handles multipart input. A request padded with a long run of dashes after the boundary makes the server work through every character. CPU use climbs and the service stops answering. The CVSS vector requires no privileges and no user interaction, and affects availability only.
BentoML serves ML models and agent back ends over HTTP. Any service whose file or multipart endpoint is reachable by an attacker can be stalled by repeated requests. This hurts everything that depends on the model API. The sources describe no data exposure or code execution.
Who is affected
The PyPI package bentoml at 1.4.5 and earlier, per the advisory. The original report was against 1.3.4post1. Services that accept multipart or file inputs over HTTP are the exposed ones.
Check your version:
pip show bentomlIf you deploy a built Bento or container, check the version of BentoML inside the image.
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, so no upgrade command can be named. Check the BentoML releases page for a version newer than 1.4.5 that addresses multipart boundary handling before you rely on one. The sources give no workaround.
General containment: do not expose the service directly to untrusted networks, and put a reverse proxy in front that limits request size, header size and request time. Restart limits and health checks help you recover faster.
How to tell if you were hit
Look for the BentoML worker pinned at high CPU with requests timing out. In proxy or access logs, look for POST requests to file or multipart endpoints with an unusually long Content-Type header or a boundary that ends in a long run of - characters, repeated from one source.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
BentoML version v1.3.4post1 is vulnerable to a Denial of Service (DoS) attack. The vulnerability can be exploited by appending characters, such as dashes (-), to the end of a multipart boundary in an HTTP request. This causes the server to continuously process each character, leading to excessive resource consumption and rendering the service unavailable. The issue is unauthenticated and does not require any user interaction, impacting all users of the service.
Questions
- Is there a patched BentoML for CVE-2024-9056?
The advisory lists none. It marks every version up to 1.4.5 as vulnerable, so check later releases and the project's notes before upgrading.
- Does CVE-2024-9056 require authentication?
No. The description says it is unauthenticated and needs no user interaction. Anyone who can reach the HTTP endpoint can send the request.
- Is CVE-2024-9056 exploited in the wild?
No source says so. It is not listed as known exploited, and EPSS is under 1 percent.
References
Read for this analysis:
- https://nvd.nist.gov/vuln/detail/CVE-2024-9056
- https://huntr.com/bounties/a24a13c2-0300-4a95-b26a-ac7fe8f6521b
- https://github.com/bentoml/BentoML/blob/a6f5f937be6ec278f3d4f3bbc6f3c8f9564820d7/src/bentoml/_internal/io_descriptors/file.py#L293
- https://github.com/bentoml/BentoML/blob/v1.4.5/src/bentoml/_internal/io_descriptors/file.py#L293C9-L293C66
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
