Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. langroid
  4. ›
  5. CVE-2026-54769

CVE-2026-54769: Langroid: Sandbox Escape to Remote Code Execution via Incomplete `eval()` Mitigation in TableChatAgent

July 6, 2026

Langroid is 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.

References

  • github.com/advisories/GHSA-q9p7-wqxg-mrhc
  • github.com/langroid/langroid/security/advisories/GHSA-q9p7-wqxg-mrhc
  • nvd.nist.gov/vuln/detail/CVE-2026-54769

Code Behaviors & Features

Detect and mitigate CVE-2026-54769 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.65.2

Fixed versions

  • 0.65.2

Solution

Upgrade to version 0.65.2 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/langroid/CVE-2026-54769.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 12 Jul 2026 12:16:43 +0000.