{
  "id": "CVE-2026-54769",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-54769",
  "published_at": "2026-07-09T23:51:10.855Z",
  "title": "Langroid: Sandbox Escape to Remote Code Execution via Incomplete `eval()` Mitigation in TableChatAgent",
  "vendor": "langroid",
  "product": "langroid",
  "cvss": {
    "score": 10,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 10
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "langroid",
        "product": "langroid",
        "ranges": [
          "\u003c 0.65.2"
        ],
        "fixed_in": [
          "0.65.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade langroid to 0.65.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/langroid/langroid/security/advisories/GHSA-q9p7-wqxg-mrhc"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
