Browse / AI Framework and Platform Flaws / CVE-2024-9056
BentoML Denial of Service (DoS) via Multipart Boundary
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Denial of service
- Affected
- bentoml (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.7% chance of exploitation in 30 days
How it works, in short
Appending dashes to a multipart boundary makes the parser keep processing characters, consuming resources until the service becomes unavailable. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9056
- https://github.com/bentoml/BentoML
- 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
- https://huntr.com/bounties/a24a13c2-0300-4a95-b26a-ac7fe8f6521b
Source: GitHub Advisory Database, used under CC BY 4.0.