Langroid
CVE-2026-25481
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pandas expression
-
ExploitBypass WAF validation via _literal_ok()
-
ExecutionAccess dunder attributes (__globals__, __builtins__)
-
ImpactExecute arbitrary code through chained DataFrame methods
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | TableChatAgent with pandas_eval tool enabled in Langroid versions prior to 0.59.32. User interaction required to send crafted expression to the agent. No authentication required for remote interaction with exposed agent endpoint. |
| Impact | CVSS 9.6 with PoC and patch. Langroid is used to build LLM-powered applications — code injection through agent interactions is an emerging AI security risk. |
| Exploit ScenarioDerived | An attacker crafts inputs that cause the Langroid agent to process code injection payloads, executing arbitrary code on the server hosting the AI application. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Langroid LLM framework prior to 0.5 has a code injection vulnerability (CVSS 9.6) allowing attackers to execute arbitrary code through the AI agent system.
Earlier versions of this analysis (1)
Code injection in Langroid LLM framework enables RCE through AI agents.
RemediationAI
Update Langroid to 0.5+. Sanitize all LLM outputs before code execution.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Langroid < 0.5 has a CWE-94 code injection vulnerability that allows attackers to inject and execute arbitrary code through the LLM agent interaction system.
Know when Langroid gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.59.32, there is a bypass to the fix for CVE-2025-46724. TableChatAgent can call pandas_eval tool to evaluate the expression. There is a WAF in langroid/utils/pandas_utils.py introduced to block code injection CVE-2025-46724. However it can be bypassed due to _literal_ok() returning False instead of raising UnsafeCommandError on invalid input, combined with unrestricted access to dangerous dunder attributes (__init__, __globals__, __builtins__). This allows chaining whitelisted DataFrame methods to leak the eval builtin and execute arbitrary code. This issue has been patched in version 0.59.32.
Executive ViewAI
Organizations using Langroid versions prior to 0.59.32 are at critical risk due to a bypass vulnerability that circumvents previous security fixes, potentially allowing attackers to execute arbitrary code or access sensitive data. This affects any applications built on the Langroid framework and requires immediate patching to prevent exploitation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Affected Products (CPE)GitHub Advisory
Langroid is a framework for building large-language-model-powered applications. Rated high severity (CVSS 7.8), this vul
Langroid is a Python framework to build large language model (LLM)-powered applications. Rated high severity (CVSS 8.1),
Langroid is a Python framework to build large language model (LLM)-powered applications. Rated critical severity (CVSS 9
GHSA-x34r-63hx-w57f
NVD
CVE.org
EPSS
Exploit-DB