CVE-2026-25879
CRITICAL 9.8CVSS 3.1Langroid has Prompt to SQL Injection, Leading to RCE
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.63.0, SQLChatAgent executes SQL produced by an LLM, which is influenceable by prompt injection. When configured with a database role that has privileges enabling code execution or filesystem access (e.g., PostgreSQL pg_execute_server_program, MySQL FILE, MSSQL xp_cmdshell), an attacker who can shape the agent's input — including indirectly via data returned to the LLM — can coerce execution of dialect-specific primitives such as COPY ... FROM PROGRAM, achieving RCE on the database host. Fixed in v0.63.0 by defaulting SQLChatAgent to a SELECT-only sqlglot-parsed statement allowlist with a dialect-aware dangerous-pattern blocklist; allow_dangerous_operations=True restores the previous unrestricted behavior for trusted deployments.
- Published
- 1 Jun 2026
- Last modified
- 21 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-89CWE-94
- Also known as
- GHSA-mxfr-6hcw-j9rqPYSEC-2026-382
- Sources
- NVDJSONOSV GHSA-mxfr-6hcw-j9rqJSONOSV PYSEC-2026-382JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | langroid | < 0.63.0 | 0.63.0 |
References
- https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25879 · ADVISORY
- https://github.com/langroid/langroid · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/langroid/PYSEC-2026-382.yaml · WEB
- https://pypi.org/project/langroid · WEB, PACKAGE
- https://github.com/advisories/GHSA-mxfr-6hcw-j9rq · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 1 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 May 2026)