CVE-2025-54381 BentoML is Vulnerable to an SSRF Attack Through File Upload Processing
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. In versions 1.4.0 until 1.4.19, the file upload processing system contains an SSRF vulnerability that allows unauthenticated remote attackers to force the server to make arbitrary HTTP requests. The vulnerability stems from the multipart form data and JSON request handlers, which automatically download files from user-provided URLs without validating whether those URLs point to internal network addresses, cloud metadata endpoints, or other restricted resources. The documentation explicitly promotes this URL-based file upload feature, making it an intended design that exposes all deployed services to SSRF attacks by default. Version 1.4.19 contains a patch for the issue.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| BentoML | = >= 1.4.0, < 1.4.19; >= 1.4.0, < 1.4.19 | 1.4.19 | Fixed |
| pypi bentoml(PyPI) | = 1.4.0; = 1.4.1; = 1.4.2; = 1.4.3 +16 more | 1.4.19 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi bentoml(PyPI) | >= 1.4.0, < 1.4.19 | 1.4.19 |
| pypi bentoml(PyPI) | = 1.4.0 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.1 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.10 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.11 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.12 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.13 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.14 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.15 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.16 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.17 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.18 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.2 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.3 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.4 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.5 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.6 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.7 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.8 | No fix listed |
| pypi bentoml(PyPI) | = 1.4.9 | No fix listed |
| BentoML | = >= 1.4.0, < 1.4.19 | No fix listed |
| BentoML | >= 1.4.0, < 1.4.19 | 1.4.19 |
References
- https://github.com/bentoml/BentoML/security/advisories/GHSA-mrmq-3q62-6cc8 exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/bentoml/BentoML/commit/534c3584621da4ab954bdc3d814cc66b95ae5fb8 patch
- github.com product
- github.com
- pypi.org product
- github.com vendor-advisory