{"id":"CVE-2026-54769","published":"2026-07-09T23:51:10Z","modified":"2026-07-10T14:12:23Z","title":"Langroid: Sandbox Escape to Remote Code Execution via Incomplete `eval()` Mitigation in TableChatAgent","vendor":"langroid","product":"langroid","tier":"tail","description":{"text":"Langroid is a framework for building large-language-model-powered applications. Versions prior to 0.65.2 are vulnerable to a critical Sandbox Escape leading to Remote Code Execution (RCE) in its `TableChatAgent` and `VectorStore` capabilities. When these agents evaluate LLM-generated tool messages with `full_eval=True`, they attempt to sandbox the execution by explicitly setting `locals` to an empty dictionary `{}` inside Python's `eval()` function. However, this relies on an incomplete understanding of Python's execution model. Because `__builtins__` is not explicitly scrubbed from the `globals` dictionary mapping, Python implicitly injects all built-ins during execution, granting full access to functions like `__import__('os').system()`. Since `TableChatAgent.pandas_eval()` executes external LLM outputs natively, this bypass permits any attacker providing prompt payload to achieve unauthenticated RCE on the host system. Version 0.65.2 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00912,"percentile":0.58163,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-q9p7-wqxg-mrhc","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":11.63},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"langroid","affectedVersions":[{"vendor":"langroid","product":"langroid","versions":["< 0.65.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-10T14:12:03.554156Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langroid","vulnerableRanges":["<0.65.2"],"patched":["0.65.2"],"from":["GHSA-q9p7-wqxg-mrhc","PYSEC-2026-2581"],"provenance":"source"}],"summary":{"text":"The flaw is a sandbox escape in Langroid, a framework for building large-language-model applications, affecting versions before 0.65.2 in the TableChatAgent and VectorStore capabilities, where the eval() call used to run LLM-generated tool messages with full_eval=True does not fully isolate execution because built-ins remain accessible through __builtins__ in the globals mapping. An attacker who can supply prompt input that reaches these agents can execute arbitrary code on the host system, without authentication or any further user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:48Z"},"euvd":{"id":"EUVD-2026-42755","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-50180","published":"2026-07-09","fixed":"0.64.0","kev":false},{"cve":"CVE-2026-50181","published":"2026-07-09","fixed":"0.64.0","kev":false},{"cve":"CVE-2026-54760","published":"2026-07-09","fixed":"0.65.1","kev":false,"link":{"from":"CVE-2026-54760","to":"CVE-2026-54769","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langroid","fromFixed":"0.65.1","toFixed":"0.65.2","daysApart":0}]}},{"cve":"CVE-2026-54769","published":"2026-07-09","fixed":"0.65.2","kev":false},{"cve":"CVE-2026-54771","published":"2026-07-09","fixed":"0.65.3","kev":false,"link":{"from":"CVE-2026-54769","to":"CVE-2026-54771","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langroid","fromFixed":"0.65.2","toFixed":"0.65.3","daysApart":0}]}},{"cve":"CVE-2026-55615","published":"2026-07-09","fixed":"0.65.5","kev":false}],"package":"PyPI:langroid"}}