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

> Unauthenticated attackers can cause denial of service in BentoML by sending crafted multipart requests to the login endpoint.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 20 Mar 2025

## What is GHSA-hh3j-9m59-p8vc?

GHSA-hh3j-9m59-p8vc is a denial of service vulnerability in bentoml, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

## Which versions are affected by GHSA-hh3j-9m59-p8vc?

2 open source packages ship an affected version, including bentoml.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `bentoml` | PyPI | All versions to 1.3.9 | None |
| `bentoml` | PyPI | All versions to 1.3.9 | None |

## How do I fix GHSA-hh3j-9m59-p8vc?

No fix has been published for GHSA-hh3j-9m59-p8vc yet. Limit exposure of the affected software until one is available.

## Is GHSA-hh3j-9m59-p8vc being exploited?

There is no known exploitation of GHSA-hh3j-9m59-p8vc in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-hh3j-9m59-p8vc and fix it if it is affected.

What it is: GHSA-hh3j-9m59-p8vc is a denial of service vulnerability in bentoml, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-hh3j-9m59-p8vc in the wild and no public exploit code.

Affected packages and fixed versions:
- bentoml (PyPI): affected all versions up to 1.3.9; no fix listed
- bentoml (PyPI): affected all versions up to 1.3.9; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-hh3j-9m59-p8vc/ (Markdown: https://insights.sbomify.com/GHSA-hh3j-9m59-p8vc/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-hh3j-9m59-p8vc

---
From sbomify Insights: https://insights.sbomify.com/GHSA-hh3j-9m59-p8vc/
Summaries are generated and may contain mistakes; the official description above is the record.
