CVE-2026-25879 Details
Description
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.
A critical vulnerability exists in Langroid versions prior to 0.63.0, specifically within the SQLChatAgent component. This issue allows for prompt injection that influences SQL execution by the agent. When the agent is granted a database role with code execution or filesystem access privileges, such as PostgreSQL's pg_execute_server_program, MySQL's FILE, or MSSQL's xp_cmdshell, an attacker can manipulate the agent's input to execute harmful commands. This exploitation can lead to remote code execution on the database host by using specific SQL dialect commands, like 'COPY ... FROM PROGRAM'. The vulnerability has been patched in version 0.63.0, which restricts SQLChatAgent to a whitelist of safe SQL operations and blocks dangerous patterns, although the previous unrestricted behavior can be restored for trusted deployments.
Users can update to Langroid version 0.63.0 or later, where this vulnerability has been fixed. For those who need to maintain the previous behavior, it's recommended to thoroughly validate and monitor the inputs to the SQLChatAgent.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 1, 2026CISA-ADP
Assessed Jun 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Langroid | < 0.63.0 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 2, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | New CVE Received | [email protected] |
Volerion