CVE-2026-25481 Langroid has WAF Bypass Leading to RCE in TableChatAgent

Critical 9.4 Published Updated

Attackers can bypass WAF restrictions in TableChatAgent to execute arbitrary code via unsafe pandas_eval expressions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-25481?

CVE-2026-25481 is a critical code injection vulnerability in langroid, published on 4 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-94

Which versions are affected by CVE-2026-25481?

3 open source packages ship an affected version, including langroid. It affects 1 product.

PackageAffectedFixed in
langroid PyPIAll versions0.59.32
langroid PyPIAll versions0.59.32
langroid PyPIAll versions0.59.32

Products include Langroid Langroid.

How do I fix CVE-2026-25481?

Upgrade langroid to 0.59.32 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-25481 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25481 exists.

Sources

Also known as GHSA-x34r-63hx-w57f, PYSEC-2026-383.

Is CVE-2026-25481 in your software?

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

Check your SBOMs for free