Documented Incident · INC-2024-2912 · Critical severity
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 dossier metadata
- Case ID
INC-2024-2912- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Exposed Infrastructure
- System type
- ML Model Serving & API Packaging Frameworks
- CVE / reference
CVE-2024-2912- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-2912
Defensive takeaway
Disable pickle content-types on HTTP inference APIs entirely, use JSON/Protobuf schemas for model I/O, and upgrade BentoML past patched releases.
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-2024-2912: BentoML HTTP Pickle Deserialization RCE · NIST National Vulnerability Database (NVD) ·