# CVE-2025-46724: Langroid code injection in TableChatAgent

Source: https://junglewise.ai/threats/cve-2025-46724-langroid-code-injection-in-tablechatagent  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-05-20. Updated: 2026-07-01  
License: CC BY 4.0 with a link back

CVE-2025-46724 · Severity: critical · CVSS 9.8 · Published 2025-05-20

Langroid, a framework for building Multi-Agent LLM applications, contains a vulnerability in its TableChatAgent component. This component is used to interact with tabular data using natural language. An attacker can exploit this to execute unauthorized code on the server hosting the application, potentially leading to full system takeover, data theft, or service disruption.

Technologies: [langroid (PyPI)](https://junglewise.ai/threats/technologies/langroid). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-46724 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-46724 being exploited in the wild.

**How severe is CVE-2025-46724?** Critical severity, with a CVSS score of 9.8, published 20 May 2025.

**Which products and versions are affected?** langroid (PyPI) < 0.53.15, ECOSYSTEM:introduced=0,fixed=0.53.15.

**Is there a fix for CVE-2025-46724?** Yes. langroid (PyPI): upgrade to 0.53.15 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-46724 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-46724?** Check whether you run langroid (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- langroid (PyPI): upgrade to 0.53.15 or later

  ```sh
  pip install "langroid>=0.53.15"
  ```


## Technical details

The TableChatAgent in Langroid uses the pandas eval() function to process data queries. Because this function is used on potentially untrusted input from a Large Language Model (LLM) or user prompt, it is susceptible to code injection (CWE-94). An attacker can craft a prompt that forces the agent to execute arbitrary Python code, such as system commands via 'os.system', to read files or gain shell access. The vulnerability is reachable over the network without authentication if the LLM application is public-facing. Version 0.53.15 introduces input sanitization to mitigate common attack vectors.

## Affected products

- langroid langroid < 0.53.15

## Identifiers

- CVE-2025-46724
- GHSA-jqq5-wc57-f8hj
- PYSEC-2026-381

## Timeline

- 2025-05-20: disclosed
- 2025-05-20: advisory
- 2025-05-20: patched: Fixed in version 0.53.15

## References

- [https://api.github.com/users/SCH227](https://api.github.com/users/SCH227)
- [https://github.com/SCH227](https://github.com/SCH227)
- [https://api.github.com/users/SCH227/gists%7B/gist_id%7D](https://api.github.com/users/SCH227/gists%7B/gist_id%7D)
- [https://api.github.com/users/SCH227/repos](https://api.github.com/users/SCH227/repos)
- [https://avatars.githubusercontent.com/u/69127692?v=4](https://avatars.githubusercontent.com/u/69127692?v=4)
- [https://api.github.com/users/SCH227/events%7B/privacy%7D](https://api.github.com/users/SCH227/events%7B/privacy%7D)

## Related threats

- [Langroid prompt injection in Neo4jChatAgent and ArangoChatAgent](https://junglewise.ai/threats/cve-2026-55615-langroid-prompt-injection-in-neo4jchatagent-and-arangochatagent)
- [Langroid unauthorized tool invocation via raw JSON payloads](https://junglewise.ai/threats/cve-2026-54771-langroid-unauthorized-tool-invocation-via-raw-json-payloads)
- [Langroid sandbox escape and RCE in TableChatAgent and VectorStore](https://junglewise.ai/threats/cve-2026-54769-langroid-sandbox-escape-and-rce-in-tablechatagent-and-vectorstore)
- [Langroid SQLChatAgent regex bypass in SQL injection mitigation](https://junglewise.ai/threats/cve-2026-54760-langroid-sqlchatagent-regex-bypass-in-sql-injection-mitigation)
- [Langroid path traversal in ReadFileTool and WriteFileTool](https://junglewise.ai/threats/cve-2026-50181-langroid-path-traversal-in-readfiletool-and-writefiletool)
