Incident report
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 record
- Reported
- Severity
- Critical
- Vector
- Exposed Infrastructure
- Affected system type
- ML Model Serving & API Packaging Frameworks
- Reference
CVE-2025-27520- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-27520
Defensive lesson
Audit model-serving serialization modules to remove all pickle.loads() codepaths from network-reachable request handlers.
Referenced 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