{"id":"CVE-2026-25481","published":"2026-02-04T20:03:32Z","modified":"2026-02-04T20:40:26Z","title":"Langroid has WAF Bypass Leading to RCE in TableChatAgent","vendor":"langroid","product":"langroid","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00733,"percentile":0.55301,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-x34r-63hx-w57f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-jqq5-wc57-f8hj","tags":["x_refsource_MISC"]},{"url":"https://github.com/langroid/langroid/commit/30abbc1a854dee22fbd2f8b2f575dfdabdb603ea","tags":["x_refsource_MISC"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":11.06},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"langroid","affectedVersions":[{"vendor":"langroid","product":"langroid","versions":["< 0.59.32"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-04T20:39:55.136196Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langroid","vulnerableRanges":["<0.59.32"],"patched":["0.59.32"],"from":["GHSA-x34r-63hx-w57f","PYSEC-2026-383"],"provenance":"source"}],"summary":{"text":"Langroid, the framework for building large-language-model-powered applications, has a flaw in the pandas_eval tool used by TableChatAgent: a weak filter in langroid/utils/pandas_utils.py, which was meant to block code injection, can be bypassed. An attacker who can get the agent to process a crafted expression, with a user interacting with the application, can chain allowed DataFrame methods to reach dangerous dunder attributes and execute arbitrary code; this does not require authentication and is patched in version 0.59.32.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:14Z"},"euvd":{"id":"EUVD-2026-5347","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langroid-cve-2025-46726","parents":[{"from":"CVE-2025-46724","to":"CVE-2026-25481","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"Prior to version 0.59.32, there is a bypass to the fix for CVE-2025-46724.","from":"CVE.org","in":"CVE-2026-25481"},{"kind":"osv-related","provenance":"source","id":"GHSA-jqq5-wc57-f8hj","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-x34r-63hx-w57f","via":"reference","url":"https://github.com/langroid/langroid/security/advisories/GHSA-jqq5-wc57-f8hj"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2026-383","via":"reference","url":"https://github.com/langroid/langroid/security/advisories/GHSA-jqq5-wc57-f8hj"},{"kind":"same-code","provenance":"machine","files":["langroid/utils/pandas_utils.py"],"commits":["https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","https://github.com/langroid/langroid/commit/30abbc1a854dee22fbd2f8b2f575dfdabdb603ea"],"basis":"rarely changed file"}]},{"from":"CVE-2025-46725","to":"CVE-2026-25481","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["langroid/utils/pandas_utils.py"],"commits":["https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","https://github.com/langroid/langroid/commit/30abbc1a854dee22fbd2f8b2f575dfdabdb603ea"],"basis":"rarely changed file"}]}]}}