CVE-2025-27520: BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization

9.8 CVSS

Description

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. A Remote Code Execution (RCE) vulnerability caused by insecure deserialization has been identified in the latest version (v1.4.2) of BentoML. It allows any unauthenticated user to execute arbitrary code on the server. It exists an unsafe code segment in serde.py. This vulnerability is fixed in 1.4.3.

Classification

CVE ID: CVE-2025-27520

CVSS Base Severity: CRITICAL

CVSS Base Score: 9.8

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types

CWE-502: Deserialization of Untrusted Data

Affected Products

Vendor: bentoml

Product: BentoML

Exploit Prediction Scoring System (EPSS)

EPSS Score: 41.91% (probability of being exploited)

EPSS Percentile: 97.21% (scored less or equal to compared to others)

EPSS Date: 2025-04-18 (when was this score calculated)

Stakeholder-Specific Vulnerability Categorization (SSVC)

SSVC Exploitation: poc

SSVC Technical Impact: total

SSVC Automatable: true

References

https://nvd.nist.gov/vuln/detail/CVE-2025-27520
https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmc
https://github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194

Timeline