ZeroHour

CVE-2025-27520

PoC moderate

Unauthenticated RCE via Insecure Deserialization in BentoML

CVSS 3.1
9.8 critical
EPSS
41%p99
Published
()
Modified
AI analysis

BentoML v1.4.2 contains a critical unauthenticated remote code execution flaw caused by insecure deserialization of untrusted data (CWE-502) in the serde.py serialization code. An attacker with network access to a BentoML serving endpoint can send a crafted serialized request payload that the server deserializes unsafely, triggering arbitrary code execution with no credentials or user interaction required. Successful exploitation yields full control of the serving process (confidentiality, integrity and availability all rated high), typically as the account running the model-inference service. Anyone running the affected version — most commonly AI/ML teams exposing BentoML inference APIs, often in containers or cloud environments — is affected. A public security advisory with PoC reference is available (GHSA-33xw-247w-6hmc), EPSS assigns a 40.3% probability of exploitation within 30 days (99th percentile), but the flaw is not yet on the CISA KEV catalog and no confirmed in-the-wild exploitation is reported.

What to do: Upgrade to BentoML 1.4.3 or later immediately (see GHSA-33xw-247w-6hmc for the full advisory). Until patched, restrict network access to BentoML serving endpoints by placing them behind authentication, a reverse proxy, or a private network, and prioritize remediating any instance reachable from the internet. Review process and egress logs on exposed servers for signs of unexpected execution, and monitor closely given the 40.3% EPSS likelihood of exploitation within 30 days.

Affected
BentoMLv1.4.2 (fixed in 1.4.3)
Estimated exposure
moderate≈10,000+ self-hosted BentoML serving deployments, a sizable share of them internet-exposed (order-of-magnitude estimate) — BentoML is a widely adopted open-source model-serving framework typically deployed as containerized or cloud inference APIs, but no public install counts or internet-exposure scans were provided, so this estimate is based on typical…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
bentoml
Products
bentoml
Weakness
CWE-502
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news