CVE-2025-46724 Langroid has a Code Injection vulnerability in TableChatAgent

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
langroid PyPIAll versions0.53.15
langroid PyPIAll versions0.53.15
langroid PyPIAll versions0.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.

Sources

Also known as GHSA-jqq5-wc57-f8hj, PYSEC-2026-381.

Is CVE-2025-46724 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free