AgentbeamBeta
AI agent vulnerability · BentoML

GHSA-hh3j-9m59-p8vc: BentoML vulnerable to Uncontrolled Resource Consumption

highCVSS 3.0 7.5

BentoML 1.3.9 and earlier has an unauthenticated denial of service in the /login endpoint of its integrated Gradio app. A request whose multipart boundary is padded with dashes makes the server burn resources until the service is unavailable. The advisory lists no patched bentoml version.

Published Mar 20, 2025 · Updated Apr 15, 2025 · Analysis Nov 24, 2026

What an attacker can do

The /login route of the Gradio app that BentoML 1.3.9 added parses multipart form data. When an attacker appends characters such as dashes to the end of the multipart boundary, the server processes each one in turn, and resource use grows with the request size (CWE-400). The advisory says no authentication and no user interaction are needed.

The attacker needs only network access to the BentoML service port. The result is an outage of the serving process, so the models behind it stop answering until it is restarted, and a repeat request takes it down again. The CVSS vector shows availability impact only, with no confidentiality or integrity loss. Teams that expose a BentoML service with the Gradio UI to the internet or to a wide internal network are most at risk.

The same flaw class appears in Gradio itself, tracked as CVE-2024-8966, and in the python-multipart library.

Who is affected

pip package bentoml, version 1.3.9 and earlier, per the advisory. Only services that run the integrated Gradio app are described as reachable through /login. Check your install:

pip show bentoml
pip show gradio python-multipart

The report does not state which sub-version first included the Gradio app, so treat every bentoml up to 1.3.9 as affected if the Gradio UI is enabled.

bentoml

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

How to fix it

The advisory lists no patched bentoml version, so no fixed release is named. The upstream python-multipart advisory says versions before 0.0.18 spend time per byte on the extra boundary data, and the only remedy it gives is upgrading to 0.0.18 or later. Upgrade bentoml and that library:

pip install -U bentoml "python-multipart>=0.0.18"

If you cannot upgrade, do not expose the service directly: put it behind a reverse proxy with request-size and rate limits, and block the login path from untrusted networks.

How to tell if you were hit

Watch the BentoML process for CPU or memory that climbs and stays high, requests that hang, and repeated restarts. In proxy or access logs, look for POST requests to the login path with large bodies or content-type headers carrying an unusually long boundary, especially from a single address and without a session.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

In bentoml/bentoml version 1.3.9, the /login endpoint of the newly integrated Gradio app is vulnerable to a Denial of Service (DoS) attack. This vulnerability can be exploited by appending characters, such as dashes (-), to the end of a multipart boundary in an HTTP request. The server continuously processes each character, leading to excessive resource consumption and rendering the service unavailable. The issue is unauthenticated and does not require any user interaction.

Questions

Is there a patched BentoML for this advisory?

No fixed bentoml version is listed. Versions up to 1.3.9 are marked vulnerable. Upgrade to the latest release, update python-multipart to 0.0.18 or later, and limit exposure.

Does it require authentication?

No. The advisory states the issue is unauthenticated and needs no user interaction, since the multipart body is processed at the login endpoint.

Can an attacker read data or run code with it?

No. The advisory rates only availability impact, so the harm is an outage of the BentoML service.

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