Vulnerability · Published Jul 29, 2025 · Assigned by GitHub_M

CVE-2025-54381BentoML is Vulnerable to an SSRF Attack Through File Upload Processing

Critical 9.9

In plain English

A critical-severity server-side request forgery in BentoML from bentoml. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 13.2% (higher than 96% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.9Critical
Exploit odds (30 days)13.2%top 3.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIbentoml1.4.19GHSA-mrmq-3q62-6cc8
PyPIbentoml1.4.19PYSEC-2026-297

Affected products (as reported)

VendorProductVersions
bentoml BentoML >= 1.4.0, < 1.4.19

Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L

References