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

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 13.8%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-29T19:24:47.000Z
- Modified: 2026-10-27T15:30:03.235Z
- Also known as: GHSA-mrmq-3q62-6cc8, PYSEC-2026-297
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- bentoml BentoML: >= 1.4.0, < 1.4.19; from 1.4.0 before 1.4.19
- bentoml (PyPI): from 1.4.0 before 1.4.19

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L`

## References

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

## Sources

- CVE List: [CVE-2025-54381](https://www.cve.org/CVERecord?id=CVE-2025-54381), CVE Terms of Use, modified 2025-07-30
- GitHub Advisory Database: [GHSA-mrmq-3q62-6cc8](https://github.com/advisories/GHSA-mrmq-3q62-6cc8), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2025-54381](https://nvd.nist.gov/vuln/detail/CVE-2025-54381), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-297](https://osv.dev/vulnerability/PYSEC-2026-297), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2025-54381 · Whole record: https://cve.day/CVE-2025-54381.json · Rebuilt by cve.day 2026-11-25T22:59:01.859Z
