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

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-02T20:42:28.000Z
- Modified: 2026-07-13T16:15:27.345Z
- Also known as: GHSA-x34r-63hx-w57f, PYSEC-2026-383
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- langroid langroid: < 0.59.32; before 0.59.32
- langroid (PyPI): before 0.59.32

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `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`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/langroid/langroid/security/advisories/GHSA-x34r-63hx-w57f> (exploit, vendor-advisory, web)
- <https://github.com/langroid/langroid/security/advisories/GHSA-jqq5-wc57-f8hj> (vendor-advisory, web)
- <https://github.com/langroid/langroid/commit/30abbc1a854dee22fbd2f8b2f575dfdabdb603ea> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25481> (advisory)
- <https://github.com/langroid/langroid> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langroid/PYSEC-2026-383.yaml> (web)
- <https://pypi.org/project/langroid> (package, web)
- <https://github.com/advisories/GHSA-x34r-63hx-w57f> (advisory)

## Sources

- CVE List: [CVE-2026-25481](https://www.cve.org/CVERecord?id=CVE-2026-25481), CVE Terms of Use, modified 2026-02-04
- GitHub Advisory Database: [GHSA-x34r-63hx-w57f](https://github.com/advisories/GHSA-x34r-63hx-w57f), CC-BY-4.0, modified 2026-07-01
- NVD: [CVE-2026-25481](https://nvd.nist.gov/vuln/detail/CVE-2026-25481), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-383](https://osv.dev/vulnerability/PYSEC-2026-383), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-25481 · Whole record: https://cve.day/CVE-2026-25481.json · Rebuilt by cve.day 2026-11-25T22:59:13.499Z
