CVE-2025-46724 Details
Description
Langroid is a Python framework to build large language model (LLM)-powered applications. Prior to version 0.53.15, `TableChatAgent` uses `pandas eval()`. If fed by untrusted user input, like the case of a public-facing LLM application, it may be vulnerable to code injection. Langroid 0.53.15 sanitizes input to `TableChatAgent` by default to tackle the most common attack vectors, and added several warnings about the risky behavior in the project documentation.
A code injection vulnerability has been identified in Langroid versions prior to 0.53.15, specifically within the TableChatAgent component. This issue arises because the agent's pandas_eval() method, which evaluates expressions using pandas, can execute arbitrary code if provided with untrusted input. Such a scenario is likely in public-facing applications that utilize large language models (LLMs). The vulnerability could lead to unauthorized access to sensitive data, disruption of service, or a complete compromise of the system running the LLM application.
Users can upgrade to Langroid version 0.53.15 or later, where this vulnerability has been addressed by sanitizing input to the TableChatAgent by default. Additionally, warnings about the potential risks of code execution have been added to the project documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/langroid/langroid/security/advisories/GHSA-jqq5-wc57-f8hj | CISA-ADP | ExploitVendor Advisory |
| https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6 | [email protected] | Patch |
| https://github.com/langroid/langroid/security/advisories/GHSA-jqq5-wc57-f8hj | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langroid langroid | < 0.53.15 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2025 | Initial Analysis | [email protected] |
| May 20, 2025 | New CVE Received | [email protected] |
| May 20, 2025 | CVE Modified | CISA-ADP |