Documented Incident · INC-2025-27520 · Critical severity

BentoML serde.py deserialize_value() Unauthenticated RCE on Serving Endpoints

CVE-2025-27520 (published April 4, 2025) revealed a recurrence of unauthenticated insecure deserialization in BentoML (`1.4.2`) inside `serde.py`'s `deserialize_value()` function. Attackers could send serialized pickle objects to exposed inference routes such as `/summarize`, bypassing input validation and triggering arbitrary code execution on the serving host. The recurrence demonstrated the systemic danger of retaining legacy pickle codecs in production model-serving libraries. Maintainers removed unsafe deserialization paths and pushed patched BentoML builds.

Incident dossier metadata

Case ID
INC-2025-27520
Classification
Incident
Date
Severity
Critical
Sector
Cloud & AI Infrastructure
Attack vector
Exposed Infrastructure
System type
ML Model Serving & API Packaging Frameworks
CVE / reference
CVE-2025-27520
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-27520

Inspect INC-2025-27520 in Interactive Incidents & Cases Hub

Defensive takeaway

Audit model-serving serialization modules to remove all pickle.loads() codepaths from network-reachable request handlers.

Mapped AI security techniques

Mapped defensive controls

Source citation records