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

CVE-2024-9056: BentoML Denial of Service (DoS) via Multipart Boundary

highCVSS 3.0 7.5GHSA-hw8j-hw49-752c

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 bentoml

If 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

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