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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.9
- **CVSS:** 9.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-918
- **Aliases:** GHSA-mrmq-3q62-6cc8, PYSEC-2026-297
- **Published:** 2025-07-29T19:24:47.000Z
- **Modified:** 2026-10-27T15:30:03.235Z

## Who should check

- Projects that depend on PyPI package bentoml (\>= 1.4.0, \< 1.4.19)
- Anyone running BentoML \>= 1.4.0, \< 1.4.19

## 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 and fixed versions

- PyPI `bentoml`: affected \>= 1.4.0, \< 1.4.19; fixed 1.4.19 (osv)
- BentoML: \>= 1.4.0, \< 1.4.19 (cvelist)

## Mitigation

- Upgrade bentoml to 1.4.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-54381. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-54381.md
Affected: bentoml >= 1.4.0, < 1.4.19
Fixed in: 1.4.19

Steps:
1. Search this machine and project for bentoml (PyPI), BentoML: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-54381 being exploited?

There is no confirmed exploitation: CVE-2025-54381 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-54381?

Critical: CVSS 9.9 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-54381?

bentoml \>= 1.4.0, \< 1.4.19.

### Is there a fix for CVE-2025-54381?

Yes. Fixed in 1.4.19. Upgrade bentoml to 1.4.19 or later.

### How do I check if I'm affected by CVE-2025-54381?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bentoml/BentoML/security/advisories/GHSA-mrmq-3q62-6cc8>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-54381>
- vendor: <https://github.com/advisories/GHSA-mrmq-3q62-6cc8>
- patch: <https://github.com/bentoml/BentoML/commit/534c3584621da4ab954bdc3d814cc66b95ae5fb8>
- other: <https://github.com/bentoml/BentoML>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-297.yaml>
- other: <https://pypi.org/project/bentoml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-54381>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mrmq-3q62-6cc8> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-297> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-54381> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-54381>
