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-46724

CVE-2025-46724: Langroid Langroid RCE Vulnerability

CVE-2025-46724 is a remote code execution flaw in Langroid Langroid affecting TableChatAgent through unsafe pandas eval() usage. This vulnerability enables code injection via untrusted input. Learn about technical details and fixes.

Published: March 18, 2026

CVE-2025-46724 Overview

CVE-2025-46724 is a critical code injection vulnerability discovered in Langroid, a Python framework for building large language model (LLM)-powered applications. The vulnerability exists in the TableChatAgent component, which uses pandas eval() to process user input. When deployed in public-facing LLM applications that accept untrusted user input, this implementation allows attackers to inject and execute arbitrary Python code on the underlying system.

Critical Impact

Attackers can achieve remote code execution by injecting malicious Python code through the TableChatAgent component in public-facing Langroid applications, potentially leading to complete system compromise.

Affected Products

  • Langroid versions prior to 0.53.15

Discovery Timeline

  • 2025-05-20 - CVE-2025-46724 published to NVD
  • 2025-06-17 - Last updated in NVD database

Technical Details for CVE-2025-46724

Vulnerability Analysis

This code injection vulnerability (CWE-94) stems from the unsafe use of Python's pandas.eval() function within the TableChatAgent component. The pandas.eval() function is designed to evaluate Python expressions for performance optimization in data operations, but when combined with untrusted user input, it becomes a dangerous attack surface for code injection.

In LLM-powered applications, user prompts are often parsed and transformed into operations on underlying data structures. When TableChatAgent processes these inputs without proper sanitization, an attacker can craft malicious input that escapes the intended data context and executes arbitrary Python code. This is particularly concerning for public-facing chatbot applications where external users can interact with the system.

The vulnerability allows attackers to bypass the application's intended functionality entirely, executing system commands, accessing sensitive data, or establishing persistent access to the compromised environment.

Root Cause

The root cause of this vulnerability is the direct passing of unsanitized user input to pandas.eval() within the TableChatAgent class. Python's eval() family of functions inherently execute code, and without strict input validation and sanitization, any expression provided by an attacker will be evaluated with the privileges of the running Python process.

Attack Vector

This vulnerability is exploitable over the network without authentication. An attacker targeting a public-facing Langroid application can submit specially crafted input through the LLM interface that, when processed by TableChatAgent, escapes the data context and executes arbitrary Python code. The attack requires no user interaction and can be automated, making it highly dangerous for exposed applications.

Common attack patterns include:

  • Injecting Python system commands via os.system() or subprocess calls
  • Reading sensitive files from the server filesystem
  • Establishing reverse shells for persistent access
  • Accessing environment variables containing credentials or API keys

The security patch introduces a sanitize_command function to validate and sanitize user input before it reaches the evaluation functions:

python
 from langroid.utils.configuration import settings
 from langroid.utils.object_registry import ObjectRegistry
 from langroid.utils.output.printing import print_long_text
-from langroid.utils.pandas_utils import stringify
+from langroid.utils.pandas_utils import sanitize_command, stringify
 from langroid.utils.pydantic_utils import flatten_dict
 
 logger = logging.getLogger(__name__)

Source: GitHub Commit Details

Detection Methods for CVE-2025-46724

Indicators of Compromise

  • Unusual system command execution patterns originating from Python/Langroid processes
  • Unexpected network connections from the application server to external hosts
  • Anomalous file system access by the Langroid application outside normal data directories
  • Log entries showing error messages related to malformed pandas expressions or Python execution errors

Detection Strategies

  • Monitor application logs for suspicious input patterns containing Python keywords like import, os., subprocess, exec, or eval
  • Implement runtime application security monitoring to detect code execution attempts within the Langroid process
  • Deploy web application firewalls (WAF) with rules to identify code injection payloads in LLM chat inputs
  • Review outbound network connections from application servers for unexpected communication patterns

Monitoring Recommendations

  • Enable verbose logging for the TableChatAgent component to capture all processed user inputs
  • Set up alerts for process spawning or network socket creation from the Langroid application
  • Monitor for file access patterns that deviate from normal application behavior
  • Track CPU and memory usage anomalies that may indicate cryptominer deployment or resource abuse

How to Mitigate CVE-2025-46724

Immediate Actions Required

  • Upgrade Langroid to version 0.53.15 or later immediately
  • Audit all deployed Langroid applications for public exposure and assess risk
  • Review application logs for signs of exploitation attempts
  • Consider temporarily disabling TableChatAgent functionality in production until patching is complete

Patch Information

Langroid version 0.53.15 addresses this vulnerability by implementing input sanitization for TableChatAgent by default. The patch adds the sanitize_command function to filter out common attack vectors before user input is processed. The fix is available through the standard Python package manager. For detailed information about the security fix, see the GitHub Security Advisory.

Workarounds

  • Restrict network access to Langroid applications to trusted internal users only until patching is possible
  • Implement additional input validation layers before data reaches TableChatAgent
  • Deploy the application in a sandboxed container environment with minimal system privileges
  • Review and follow the security warnings added to the Langroid project documentation regarding risky behavior
bash
# Upgrade Langroid to the patched version
pip install --upgrade langroid>=0.53.15

# Verify installed version
pip show langroid | grep Version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLangroid

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.21%

  • 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-94
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25481: Langroid Framework RCE Vulnerability

  • CVE-2025-46725: Langroid Python Framework RCE Vulnerability

  • CVE-2025-46726: Langroid XXE 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