CVE-2026-54769: Langroid - Remote Code Execution
- Cve: CVE-2026-54769
- Name: Langroid - Remote Code Execution
- Description: 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.
- Impact: Unauthenticated attackers can execute arbitrary code remotely, leading to full system compromise.
- Remediation: Upgrade to version 0.65.2 or later.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 10
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.00912
- Epss percentile: 0.60778
- Assignee: [email protected]
- Published at: 2026-07-10T00:16:33Z
- Age in days: 137
- Modified at: 2026-07-10T15:49:19Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-54769
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/langroid/langroid/security/advisories/GHSA-q9p7-wqxg-mrhc | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| langroid:langroid | < 0.65.2 | no | cna_alias_text | /v1/products/langroid/langroid |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| langroid/langroid | package, security_advisory | yes | /v1/repositories/langroid/langroid |
Index
- Repositories: 1
- Repositories high signal: 1
- Checked, none or zero: packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts