GHSA-x34r-63hx-w57f: Langroid has WAF Bypass Leading to RCE in TableChatAgent
Langroid versions up to 0.59.31 contain a vulnerability in the TableChatAgent component where a Web Application Firewall (WAF) bypass allows remote code execution (RCE). The vulnerability arises because the WAF does not properly block dangerous inputs due to a function returning False instead of raising an error, combined with unrestricted access to dangerous Python dunder attributes. This enables attackers to chain DataFrame methods to leak the eval builtin and execute arbitrary code. A proof-of-concept demonstrates executing shell commands via the pandas_eval tool. No patch or official fix is currently documented.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-25481) affects langroid versions prior to 0.59.32. It involves the TableChatAgent's use of the pandas_eval tool to evaluate expressions. Although a WAF was introduced to prevent code injection (related to CVE-2025-46724), it can be bypassed because the _literal_ok() function returns False instead of raising an UnsafeCommandError on invalid input. This, combined with unrestricted access to dangerous dunder attributes such as __init__, __globals__, and __builtins__, allows attackers to chain whitelisted DataFrame methods to leak the eval builtin function and execute arbitrary code remotely. The exploit uses a crafted DataFrame column name to execute shell commands on the server. The vulnerability leads to remote code execution via user-controlled input in the pandas_eval tool within TableChatAgent.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary shell commands on the server running langroid's TableChatAgent. This results in full remote code execution (RCE), compromising the confidentiality, integrity, and availability of the affected system. The vulnerability bypasses existing WAF protections and leverages Python internals to execute malicious code.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using vulnerable versions of langroid (<=0.59.31) in untrusted environments. Restrict access to the pandas_eval tool and disable or limit user-controlled expression evaluation. Monitor vendor channels for updates or patches addressing this vulnerability.
GHSA-x34r-63hx-w57f: Langroid has WAF Bypass Leading to RCE in TableChatAgent
Description
Langroid versions up to 0.59.31 contain a vulnerability in the TableChatAgent component where a Web Application Firewall (WAF) bypass allows remote code execution (RCE). The vulnerability arises because the WAF does not properly block dangerous inputs due to a function returning False instead of raising an error, combined with unrestricted access to dangerous Python dunder attributes. This enables attackers to chain DataFrame methods to leak the eval builtin and execute arbitrary code. A proof-of-concept demonstrates executing shell commands via the pandas_eval tool. No patch or official fix is currently documented.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-25481) affects langroid versions prior to 0.59.32. It involves the TableChatAgent's use of the pandas_eval tool to evaluate expressions. Although a WAF was introduced to prevent code injection (related to CVE-2025-46724), it can be bypassed because the _literal_ok() function returns False instead of raising an UnsafeCommandError on invalid input. This, combined with unrestricted access to dangerous dunder attributes such as __init__, __globals__, and __builtins__, allows attackers to chain whitelisted DataFrame methods to leak the eval builtin function and execute arbitrary code remotely. The exploit uses a crafted DataFrame column name to execute shell commands on the server. The vulnerability leads to remote code execution via user-controlled input in the pandas_eval tool within TableChatAgent.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary shell commands on the server running langroid's TableChatAgent. This results in full remote code execution (RCE), compromising the confidentiality, integrity, and availability of the affected system. The vulnerability bypasses existing WAF protections and leverages Python internals to execute malicious code.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using vulnerable versions of langroid (<=0.59.31) in untrusted environments. Restrict access to the pandas_eval tool and disable or limit user-controlled expression evaluation. Monitor vendor channels for updates or patches addressing this vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-x34r-63hx-w57f
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-25481"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 4.0
Threat ID: 6a46ed1527e9c797194470a6
Added to database: 07/02/2026, 22:58:29 UTC
Last enriched: 07/02/2026, 23:35:34 UTC
Last updated: 07/03/2026, 08:51:23 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.