CVE-2025-46724 Langroid has a Code Injection vulnerability in TableChatAgent
Attackers can execute arbitrary code via untrusted input in TableChatAgent due to unsafe pandas eval usage in Langroid.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-46724?
CVE-2025-46724 is a critical code injection vulnerability in langroid, published on 20 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2025-46724?
3 open source packages ship an affected version, including langroid. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
langroid PyPI | All versions | 0.53.15 |
langroid PyPI | All versions | 0.53.15 |
langroid PyPI | All versions | 0.53.15 |
Products include Langroid Langroid.
How do I fix CVE-2025-46724?
Upgrade langroid to 0.53.15 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-46724 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46724 exists.
Other vulnerabilities in langroid
Sources
Also known as GHSA-jqq5-wc57-f8hj, PYSEC-2026-381.