The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2025-27520

CVE-2025-27520: BentoML RCE Vulnerability

CVE-2025-27520 is a remote code execution vulnerability in BentoML caused by insecure deserialization. Unauthenticated attackers can execute arbitrary code on the server. This article covers technical details, impact, and mitigation.

Published: March 11, 2026

CVE-2025-27520 Overview

CVE-2025-27520 is a critical Remote Code Execution (RCE) vulnerability caused by insecure deserialization in BentoML, a popular Python library for building online serving systems optimized for AI applications and model inference. The vulnerability exists in version 1.4.2 and allows any unauthenticated user to execute arbitrary code on the server through unsafe code handling in the serde.py module.

Critical Impact

Unauthenticated attackers can achieve complete remote code execution on BentoML servers, potentially compromising AI/ML infrastructure, stealing model data, and gaining full system access without any authentication requirements.

Affected Products

  • BentoML versions prior to 1.4.3
  • BentoML version 1.4.2 (specifically identified as vulnerable)
  • All BentoML deployments using insecure deserialization in serde.py

Discovery Timeline

  • 2025-04-04 - CVE-2025-27520 published to NVD
  • 2025-06-27 - Last updated in NVD database

Technical Details for CVE-2025-27520

Vulnerability Analysis

This insecure deserialization vulnerability represents a severe security flaw in BentoML's data handling mechanisms. The vulnerability stems from unsafe code in the serde.py module, which is responsible for serialization and deserialization of data within the BentoML framework. When processing incoming data, the application fails to properly validate or sanitize serialized objects before deserializing them, allowing attackers to craft malicious payloads that execute arbitrary code upon deserialization.

The vulnerability is particularly dangerous in AI/ML serving environments where BentoML is commonly deployed, as these systems often handle sensitive model data and have network exposure to receive inference requests. The unauthenticated nature of this vulnerability means no credentials or special access is required to exploit it.

Root Cause

The root cause is classified as CWE-502 (Deserialization of Untrusted Data). The serde.py module contains unsafe deserialization logic that processes user-supplied data without proper validation. Python's native serialization mechanisms can be abused to execute arbitrary code when deserializing malicious objects, and the BentoML codebase did not implement adequate safeguards against such attacks.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can send specially crafted serialized payloads to a BentoML server endpoint. When the server deserializes this malicious data, it triggers the execution of attacker-controlled code with the privileges of the BentoML service process.

The security patch modifies how RemoteProxy handles media types to enforce safer data handling:

python
                 deployment_url, service=self.service, media_type="application/json"
             )
         else:
-            proxy = RemoteProxy("http://localhost:3000", service=self.service, app=app)
+            proxy = RemoteProxy("http://localhost:3000", service=self.service, app=app, media_type="application/json")
         self._service_instance.__self_proxy__ = proxy  # type: ignore[attr-defined]
         self._service_instance.to_async = proxy.to_async  # type: ignore[attr-defined]
         self._service_instance.to_sync = proxy.to_sync  # type: ignore[attr-defined]

Source: GitHub Commit b35f4f4

Detection Methods for CVE-2025-27520

Indicators of Compromise

  • Unexpected outbound network connections from BentoML server processes
  • Anomalous process spawning or command execution by the BentoML Python process
  • Unusual serialized data patterns in incoming HTTP requests to BentoML endpoints
  • New files or scripts appearing in the BentoML deployment directory
  • Modifications to system files or credentials from the BentoML service account

Detection Strategies

  • Monitor BentoML server logs for unusual request patterns or deserialization errors
  • Implement network traffic analysis to detect malicious serialized Python objects (pickle payloads)
  • Deploy endpoint detection and response (EDR) solutions to identify code execution anomalies
  • Use SentinelOne Singularity to detect behavioral indicators of post-exploitation activity

Monitoring Recommendations

  • Enable verbose logging on BentoML servers to capture request details
  • Set up alerts for process creation events originating from Python/BentoML processes
  • Monitor for unusual file system activity in BentoML installation directories
  • Track network connections initiated by the BentoML service for C2 communication indicators

How to Mitigate CVE-2025-27520

Immediate Actions Required

  • Upgrade BentoML to version 1.4.3 or later immediately
  • Audit existing BentoML deployments to identify vulnerable versions (pip show bentoml)
  • Implement network segmentation to limit exposure of BentoML services
  • Review server logs for signs of exploitation attempts
  • Consider temporarily disabling public-facing BentoML endpoints until patching is complete

Patch Information

The vulnerability is fixed in BentoML version 1.4.3. The security patch is available in commit b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194. Organizations should update their BentoML installations immediately using pip: pip install --upgrade bentoml>=1.4.3. For detailed patch information, refer to the GitHub Security Advisory GHSA-33xw-247w-6hmc.

Workarounds

  • Restrict network access to BentoML servers using firewall rules or security groups
  • Place BentoML deployments behind an authenticated reverse proxy or API gateway
  • Implement input validation at the network edge to filter suspicious serialized payloads
  • Use application-level authentication even if upgrading is not immediately possible
bash
# Upgrade BentoML to patched version
pip install --upgrade bentoml>=1.4.3

# Verify installed version
pip show bentoml | grep Version

# Alternative: Pin to specific patched version
pip install bentoml==1.4.3

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 Score9.8

  • EPSS Probability80.95%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Security Advisory GHSA-33xw-247w-6hmc
  • Vendor Resources
  • GitHub Commit Information
  • Related CVEs
  • CVE-2026-33744: BentoML RCE Vulnerability

  • CVE-2025-32375: BentoML Insecure Deserialization RCE Flaw

  • CVE-2026-27905: BentoML Path Traversal Vulnerability

  • CVE-2026-24123: BentoML Path Traversal Vulnerability
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