GHSA-mxfr-6hcw-j9rq: Langroid has Prompt to SQL Injection, Leading to RCE
- Identifiers
- CVE-2026-25879GHSA-mxfr-6hcw-j9rq
- Published
- Record updated
- Affected
- langroid < 0.63.0
- Fixed in
- 0.63.0
- released May 26, 2026, on the day of disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%
Summary
Langroid versions before 0.63.0 let SQLChatAgent run SQL that an LLM generates from input it can be steered to take, including data returned to the model. When the configured database role holds privileges such as PostgreSQL pg_execute_server_program, MySQL FILE, or MSSQL xp_cmdshell, an attacker can use dialect-specific primitives like COPY ... FROM PROGRAM to execute commands on the database host. The advisory's proof of concept shows execution of the id command through this path.
Mitigation
Fixed in vX.Y by defaulting SQLChatAgent to a SELECT-only sqlglot-parsed statement allowlist with a dialect-aware dangerous-pattern blocklist. Setting allow_dangerous_operations=True restores the previous unrestricted behavior, intended only for trusted deployments.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langroidPyPILLM dependency since 2023-07-14
Related items
- HighCVE-2026-138118: HyperSpy insecure deserialization via crafted .hspy or .zspy filesSimilar attack · NVD/CVE Database
- MediumCVE-2026-138033: mcp-video-analyzer server-side request forgery via video URL inputsSimilar attack · NVD/CVE Database
- HighCVE-2026-138028: Bagel (bagel-mcp) before 2.5.5 contains an argument injection vulnerability in RsyncFilesToLocalDirectory that allows…Similar attack · NVD/CVE Database
- Infov2026.11Similar attack · MITRE ATLAS Releases
- MediumCVE-2026-137548: Coder dashboard renders unvalidated URL schemes in app status linksSimilar attack · NVD/CVE Database