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
Defensive takeaway
Audit model-serving serialization modules to remove all pickle.loads() codepaths from network-reachable request handlers.
Mapped AI security techniques
- Exploit Public-Facing Application AML.T0049
- Command and Scripting Interpreter AML.T0050
- Exploitation of Remote Services AML.T0122
- Misconfigured or Publicly Exposed AI Services AML.T0132
Mapped defensive controls
- Restrict Library Loading AML.M0011
- Vulnerability Scanning AML.M0016
- Control Access to AI Models and Data in Production AML.M0019
Source citation records
- NVD Record CVE-2025-27520: BentoML serde.py Insecure Deserialization RCE · NIST National Vulnerability Database (NVD) ·