Incident report
BentoML Unauthenticated HTTP POST Pickle Deserialization Remote Code Execution
CVE-2024-2912 (published April 15, 2024) disclosed an unauthenticated remote code execution vulnerability in the BentoML model-serving framework's HTTP inference runner. By sending a crafted HTTP POST request with a `Content-Type: application/vnd.bentoml+pickle` header to exposed inference endpoints, remote attackers induced the server to deserialize untrusted bytes via Python's `pickle`. Exposed BentoML prediction services granted full OS command execution and access to hosted model artifacts and cloud roles. BentoML patched default serialization handling to reject untrusted pickle payloads over public inference routes.
Incident record
- Reported
- Severity
- Critical
- Vector
- Exposed Infrastructure
- Affected system type
- ML Model Serving & API Packaging Frameworks
- Reference
CVE-2024-2912- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-2912
Defensive lesson
Disable pickle content-types on HTTP inference APIs entirely, use JSON/Protobuf schemas for model I/O, and upgrade BentoML past patched releases.
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