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
    • 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-2026-27952

CVE-2026-27952: Agenta LLMOps Platform RCE Vulnerability

CVE-2026-27952 is a remote code execution flaw in Agenta's LLMOps platform that allows authenticated users to escape Python sandbox restrictions. This post explains its impact, affected versions, and mitigation steps.

Published: February 27, 2026

CVE-2026-27952 Overview

CVE-2026-27952 is a Python sandbox escape vulnerability in Agenta's custom code evaluator that allows authenticated users to achieve arbitrary code execution on the API server. Agenta, an open-source LLMOps platform, used RestrictedPython as a sandboxing mechanism for user-supplied evaluator code but incorrectly whitelisted the numpy package as safe within the sandbox. This misconfiguration enabled attackers to bypass sandbox restrictions and execute arbitrary commands on the underlying server through Python's introspection utilities.

Critical Impact

Authenticated attackers can escape the Python sandbox and achieve full arbitrary code execution on the Agenta API server, potentially compromising the entire self-hosted platform and any connected infrastructure.

Affected Products

  • Agenta-API versions prior to 0.48.1
  • Agenta self-hosted platform (API server)
  • Agenta versions using RestrictedPython sandbox (prior to v0.60)

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-27952 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27952

Vulnerability Analysis

This vulnerability represents a Code Injection flaw (CWE-94) in Agenta's custom code evaluator component. The vulnerability stems from an insecure allowlist configuration in the RestrictedPython sandbox implementation. While RestrictedPython is designed to execute untrusted Python code in a restricted environment, the Agenta developers incorrectly assumed that the numpy package was safe to include in the sandbox allowlist.

The critical issue is that numpy provides access to Python's introspection capabilities through its internal modules. Specifically, numpy.ma.core.inspect exposes Python's introspection utilities, which include access to sys.modules. This access allows an attacker to traverse the module hierarchy and reach unfiltered system-level functionality such as os.system, effectively breaking out of the sandbox entirely.

This vulnerability affects only the self-hosted Agenta platform where the API server processes custom evaluator code. The Agenta SDK used as a standalone Python library is not affected. The custom code evaluator runs server-side within the API process, meaning successful exploitation grants code execution with the privileges of the API server process.

Root Cause

The root cause of this vulnerability is an improper allowlist configuration in the RestrictedPython sandbox. The developers assumed that numpy, being a numerical computing library, would be safe to expose to user-supplied code. However, they failed to account for the fact that numpy internally imports and exposes Python's inspect module, which provides powerful introspection capabilities that can be abused to escape the sandbox.

The numpy.ma.core submodule specifically imports Python's inspect module, making it accessible through the numpy namespace. From there, attackers can access sys.modules and subsequently load dangerous modules like os, subprocess, or socket that should have been blocked by the sandbox.

Attack Vector

The attack is network-accessible and requires only low-privilege authentication to the Agenta platform. An authenticated user can submit malicious evaluator code through the API that leverages the numpy allowlist exception to escape the sandbox. The attack chain involves:

  1. Accessing numpy.ma.core.inspect from within the sandbox
  2. Using introspection to reach sys.modules
  3. Loading system modules like os or subprocess
  4. Executing arbitrary system commands with the API server's privileges

The exploitation path through numpy.ma.core.inspect provides access to Python's introspection utilities — including sys.modules — thereby providing access to unfiltered system-level functionality like os.system. See the GitHub Security Advisory for technical details.

Detection Methods for CVE-2026-27952

Indicators of Compromise

  • Unusual process spawning from the Agenta API server process
  • API server executing shell commands or accessing sensitive system resources
  • Evaluator code submissions containing references to numpy.ma.core, inspect, sys.modules, or os.system
  • Unexpected network connections originating from the API server

Detection Strategies

  • Monitor evaluator code submissions for patterns involving numpy.ma.core.inspect or similar introspection paths
  • Implement application-level logging for all custom evaluator code execution
  • Deploy endpoint detection solutions to monitor for anomalous process behavior from the API server
  • Review API access logs for unusual patterns of evaluator submissions from specific users

Monitoring Recommendations

  • Configure alerting for any subprocess execution from the Agenta API process
  • Implement code scanning on evaluator submissions to detect sandbox escape patterns
  • Monitor file system access patterns from the API server for unauthorized reads or writes
  • Enable audit logging for system calls made by the API server process

How to Mitigate CVE-2026-27952

Immediate Actions Required

  • Upgrade Agenta-API to version 0.48.1 or later immediately
  • Consider upgrading to version 0.60 or later where the RestrictedPython sandbox was replaced entirely
  • Audit recent evaluator submissions for potential exploitation attempts
  • Review system logs for indicators of compromise

Patch Information

The vulnerability is fixed in Agenta version 0.48.1 by removing numpy from the sandbox allowlist. In later versions (v0.60+), the RestrictedPython sandbox was removed entirely and replaced with a different execution model that provides stronger isolation guarantees. Organizations should prioritize upgrading to the latest stable release. For more details, see the GitHub Security Advisory.

Workarounds

  • If immediate patching is not possible, disable the custom code evaluator feature until the upgrade can be performed
  • Implement network segmentation to limit the blast radius of potential exploitation
  • Apply strict authentication controls and limit which users can submit custom evaluator code
  • Consider deploying the API server in an isolated container environment with minimal privileges
bash
# Verify Agenta version and upgrade if necessary
# Check current version
pip show agenta | grep Version

# Upgrade to patched version
pip install --upgrade agenta>=0.48.1

# For production deployments, use the latest stable release
pip install --upgrade agenta>=0.60.0

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAgenta

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27961: Agenta SSTI 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