CVE-2025-54381
Critical · 9.9BentoML SSRF Vulnerability in File Upload Processing
CVSS
9.9
EPSS
16.2%
Published
Jul 29, 2025
CISA due date
—
The record
There's an SSRF in the file upload processing system that allows remote attackers to make arbitrary HTTP requests from the server without authentication. The vulnerability exists in the serialization/deserialization handlers for multipart form data and JSON requests, which automatically download files from user-provided URLs without proper validation of internal network addresses. The framework automatically registers any service endpoint with file-type parameters (`pathlib.Path`, `PIL.Image.Image`) as vulnerable to this attack, making it a framework-wide security issue that affects most real-world ML services handling file uploads. While BentoML implements basic URL scheme validation in the `JSONSerde` path, the `MultipartSerde` path has no validation whatsoever, and neither path restricts access to internal networks, cloud metadata endpoints, or localhost services. The documentation explicitly promotes this URL-based file upload feature, making it an intended but insecure design that exposes all deployed services to SSRF attacks by default.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | bentoml | 1.4.0 | 1.4.19 |
| pypi | bentoml | 1.4.0 | No fix |
Related vulnerabilities
- CVE-2026-27905 BentoML is a Python library for building online serving systems optimized for AI apps and… Also affects bentoml
- GHSA-m6w7-qv66-g3mf BentoML Vulnerable to Arbitrary File Write via Symlink Path Traversal in Tar Extraction Also affects bentoml
- CVE-2026-24123 BentoML is a Python library for building online serving systems optimized for AI apps and… Also affects bentoml
- GHSA-6r62-w2q3-48hf BentoML has a Path Traversal via Bentofile Configuration Also affects bentoml
- CVE-2025-32375 BentoML's runner server Vulnerable to Remote Code Execution (RCE) via Insecure… Also affects bentoml
- CVE-2025-27520 BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization Also affects bentoml
- CVE-2026-114730 Roundcube Webmail 1.6.14 before 1.6.20 and 1.7.0 before 1.7.5 is affected by a… CWE-918
- CVE-2026-87953 Server-Side Request Forgery (SSRF) vulnerability in Drupal SAML SSO - Service Provider… CWE-918