Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-2912

CVE-2024-2912: BentoML Insecure Deserialization RCE Flaw

CVE-2024-2912 is an insecure deserialization vulnerability in BentoML that enables remote code execution through crafted POST requests. Attackers can execute arbitrary commands on the server. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: April 8, 2026

CVE-2024-2912 Overview

An insecure deserialization vulnerability exists in the BentoML framework, allowing remote code execution (RCE) by sending a specially crafted POST request. By exploiting this vulnerability, attackers can execute arbitrary commands on the server hosting the BentoML application. The vulnerability is triggered when a serialized object, crafted to execute OS commands upon deserialization, is sent to any valid BentoML endpoint. This issue poses a significant security risk, enabling attackers to compromise the server and potentially gain unauthorized access or control.

Critical Impact

Remote attackers can achieve full server compromise through arbitrary command execution without authentication, potentially leading to complete system takeover, data theft, and lateral movement within the network.

Affected Products

  • BentoML Framework (versions prior to security patch)

Discovery Timeline

  • 2024-04-16 - CVE CVE-2024-2912 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-2912

Vulnerability Analysis

This insecure deserialization vulnerability (CWE-1188: Insecure Default Initialization of Resource) in the BentoML framework allows unauthenticated attackers to achieve remote code execution through the network. The vulnerability requires no user interaction and can affect resources beyond the security scope of the vulnerable component, making it particularly dangerous for organizations deploying machine learning models via BentoML.

The exploitation mechanics involve crafting a malicious serialized object that, when processed by the BentoML endpoint, executes attacker-controlled operating system commands. Since BentoML is commonly used for serving machine learning models, affected deployments are often internet-facing, significantly increasing the attack surface.

Root Cause

The root cause of this vulnerability lies in the insecure handling of serialized data within the BentoML framework. The application fails to properly validate or sanitize incoming serialized objects before deserializing them, allowing maliciously crafted payloads to execute arbitrary code during the deserialization process. This is a classic insecure deserialization pattern where untrusted data is passed directly to deserialization functions without adequate security controls.

Attack Vector

The attack vector is network-based and does not require authentication or user interaction. An attacker can exploit this vulnerability by sending a specially crafted POST request containing a malicious serialized object to any valid BentoML endpoint. Upon deserialization, the payload triggers the execution of embedded OS commands with the privileges of the BentoML process.

The vulnerability affects any BentoML endpoint that accepts and processes serialized data, making the entire API surface potentially exploitable. Attackers can leverage this to establish reverse shells, exfiltrate sensitive data including ML model weights and training data, or pivot to other systems within the network.

Detection Methods for CVE-2024-2912

Indicators of Compromise

  • Unusual POST requests to BentoML endpoints containing suspicious serialized payloads or pickle objects
  • Unexpected child processes spawned by the BentoML service (e.g., shell interpreters like /bin/sh, /bin/bash, cmd.exe)
  • Anomalous outbound network connections from the server hosting BentoML
  • Unexpected file system modifications or new files created by the BentoML process

Detection Strategies

  • Implement deep packet inspection to identify malicious serialized objects in HTTP POST requests targeting BentoML endpoints
  • Deploy endpoint detection and response (EDR) solutions to monitor for suspicious process execution chains originating from Python/BentoML processes
  • Configure application-layer firewalls to inspect and block requests containing potentially malicious serialization patterns

Monitoring Recommendations

  • Enable detailed logging for all BentoML API endpoints and monitor for anomalous request patterns
  • Set up alerts for process creation events where BentoML spawns unexpected child processes
  • Monitor network traffic for unusual outbound connections from ML serving infrastructure
  • Implement file integrity monitoring on servers hosting BentoML deployments

How to Mitigate CVE-2024-2912

Immediate Actions Required

  • Update BentoML to the patched version immediately by applying commit fd70379733c57c6368cc022ac1f841b7b426db7b or a later release
  • Audit all BentoML deployments within your environment and inventory affected systems
  • Implement network segmentation to limit exposure of BentoML services to trusted networks only
  • Review server logs for any signs of prior exploitation attempts

Patch Information

The BentoML development team has addressed this vulnerability through a security commit on GitHub. Organizations should update their BentoML installations to include this fix. Additional details about the vulnerability discovery can be found in the Huntr bounty report.

Workarounds

  • Restrict network access to BentoML endpoints using firewalls and access control lists, allowing only trusted sources
  • Implement a reverse proxy with request filtering to inspect and sanitize incoming requests before they reach BentoML
  • Disable or remove any unnecessary BentoML endpoints until the patch can be applied
  • Consider running BentoML in a containerized environment with minimal privileges and network isolation
bash
# Example: Restricting access to BentoML with iptables
# Allow only trusted internal network to access BentoML service
iptables -A INPUT -p tcp --dport 3000 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 3000 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechBentoml

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability7.49%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1188
  • Technical References
  • GitHub Commit Update

  • Huntr Bounty Notification
  • Related CVEs
  • CVE-2026-35043: BentoML Cloud Deployment RCE Vulnerability

  • CVE-2026-35044: BentoML Template Injection RCE Vulnerability

  • CVE-2026-33744: BentoML RCE Vulnerability

  • CVE-2024-9070: BentoML Deserialization RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English