{"id":"CVE-2025-46724","published":"2025-05-20T17:22:13Z","modified":"2025-05-20T17:53:34Z","title":"Langroid has a Code Injection vulnerability in TableChatAgent","vendor":"langroid","product":"langroid","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01015,"percentile":0.62285,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-jqq5-wc57-f8hj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","tags":["x_refsource_MISC"]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":12.46},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"langroid","affectedVersions":[{"vendor":"langroid","product":"langroid","versions":["< 0.53.15"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-20T17:53:31.640397Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langroid","vulnerableRanges":["<0.53.15"],"patched":["0.53.15"],"from":["GHSA-jqq5-wc57-f8hj","PYSEC-2026-381"],"provenance":"source"}],"summary":{"text":"The flaw is a code injection vulnerability in the TableChatAgent component of Langroid, a Python framework for building LLM-powered applications, which uses pandas eval() on input it processes. An attacker who can supply untrusted input to TableChatAgent, as in a public-facing LLM application, can inject code that is executed, with no authentication or user interaction required over the network; versions prior to 0.53.15 are affected, and 0.53.15 adds default input sanitization and documentation warnings against the risky behavior.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:34Z"},"euvd":{"id":"EUVD-2025-15952","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langroid-cve-2025-46726","parents":[{"from":"CVE-2025-46726","to":"CVE-2025-46724","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langroid","fromFixed":"0.53.4","toFixed":"0.53.15","daysApart":15},{"kind":"same-code","provenance":"machine","files":["langroid/agent/special/table_chat_agent.py"],"commits":["https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3"],"basis":"shared function","functions":["pandas_eval"]}]}],"children":[{"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"}]}],"packageHistory":[{"cve":"CVE-2025-46726","published":"2025-05-05","fixed":"0.53.4","kev":false},{"cve":"CVE-2025-46724","published":"2025-05-20","fixed":"0.53.15","kev":false},{"cve":"CVE-2025-46725","published":"2025-05-20","fixed":"0.53.15","kev":false},{"cve":"CVE-2026-25481","published":"2026-02-04","fixed":"0.59.32","kev":false},{"cve":"CVE-2026-25879","published":"2026-06-01","fixed":"0.63.0","kev":false}],"package":"PyPI:langroid"}}