BentoML is Vulnerable to an SSRF Attack Through File Upload Processing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bentoml | BentoML | 1.4.0 to before 1.4.19 | 1.4.19 | Patch available | CNA |
| — | bentoml (PyPI) | 1.4.0 to before 1.4.19 | 1.4.19 | Patch available | GHSA-mrmq-3q62-6cc8 |
- BentoML Vendorbentoml Affected 1.4.0 to before 1.4.19 Fixed in 1.4.19 Patch available CNA
- bentoml (PyPI) Vendor— Affected 1.4.0 to before 1.4.19 Fixed in 1.4.19 Patch available GHSA-mrmq-3q62-6cc8
Remediation
- Fix · CNA BentoML (bentoml) Fixed in 1.4.19
- Fix · GHSA-mrmq-3q62-6cc8 bentoml (PyPI) Fixed in 1.4.19 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-54381
- 2026-10-03 Alias added: GHSA-mrmq-3q62-6cc8
References
More Bentoml vulnerabilities
- TI-2025-23454 Insecure Deserialization leads to RCE in BentoML's runner server CVSS 3.1CRITICAL 9.8
- TI-2025-20352 BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization CVSS 3.1CRITICAL 9.8
- TI-2026-27247 BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation CVSS 3.1CRITICAL 9.6
- TI-2026-32312 BentoML: Dockerfile command injection via envs[*].name in bentofile.yaml CVSS 3.1HIGH 8.8
- TI-2026-32311 BentoML: Dockerfile command injection via docker.base_image CVSS 3.1HIGH 8.8
- TI-2026-22249 BentoML has an Arbitrary File Write via Symlink Path Traversal in Tar Extraction CVSS 4.0HIGH 8.6
Sources
- CVE-2025-54381 · CVE Program
- CVE-2025-54381 · NVD
- FIRST EPSS
- GHSA-mrmq-3q62-6cc8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences