9.8
CRITICAL CVSS 3.1
CVE-2026-25879
Langroid has Prompt to SQL Injection, Leading to RCE
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.

INFO

Published Date :

June 1, 2026, 11:16 p.m.

Last Modified :

July 21, 2026, 7:10 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-25879 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Langroid langroid
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 CRITICAL [email protected]
Solution
Update Langroid to v0.63.0 or later for SQLChatAgent prompt injection and RCE protection.
  • Update Langroid to v0.63.0 or later.
  • Do not enable allow_dangerous_operations unless trusted.
  • Restrict database role privileges.
  • Sanitize all agent inputs.
Public PoC/Exploit Available at Github

CVE-2026-25879 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-25879.

URL Resource
https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq
https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-25879 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Codey: unofficial Codex CLI fork with tool-output relevance pruning

Python Dockerfile Shell Starlark JavaScript Rust C Nix HTML PowerShell

Updated: 1 month, 1 week ago
2 stars 0 fork 0 watcher
Born at : June 8, 2026, 4:18 a.m. This repo has been linked 5 different CVEs too.

Static scanner for MCP-connected AI agent pipelines — 225 rules across 11 categories, 12 compliance frameworks, OWASP Agentic 10/10 + MCP 10/10, GitHub Action, SARIF, public CVE-to-rule ledger.

ai-agent ai-security claude-code github-action mcp mcp-security owasp sarif scanner security supply-chain-security tool-poisoning ai-agent-security ai-safety security-scanner static-analysis

Python Dockerfile Shell TypeScript HTML Makefile

Updated: 3 days, 1 hour ago
10 stars 0 fork 0 watcher
Born at : April 5, 2026, 3:12 p.m. This repo has been linked 35 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-25879 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-25879 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Jul. 21, 2026

    Action Type Old Value New Value
    Added Translation Title: Langroid, Description: Langroid es un framework para construir aplicaciones impulsadas por modelos de lenguaje grandes. Antes de la versión 0.63.0, SQLChatAgent ejecuta SQL producido por un LLM, el cual es influenciable mediante inyección de prompts. Cuando se configura con un rol de base de datos que tiene privilegios que permiten la ejecución de código o el acceso al sistema de archivos (por ejemplo, PostgreSQL pg_execute_server_program, MySQL FILE, MSSQL xp_cmdshell), un atacante que puede moldear la entrada del agente - incluso indirectamente a través de datos devueltos al LLM - puede forzar la ejecución de primitivas específicas del dialecto como 'COPY ... FROM PROGRAM', logrando RCE en el host de la base de datos. Corregido en la v0.63.0 al establecer por defecto SQLChatAgent a una lista de permitidos de sentencias analizadas por sqlglot de solo SELECT con una lista de bloqueados de patrones peligrosos consciente del dialecto; allow_dangerous_operations=True restaura el comportamiento irrestricto anterior para implementaciones de confianza.
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'langroid', 'product': 'langroid', 'versions': [{'status': 'affected', 'version': '< 0.63.0'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-25879', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-02T15:03:18.990011Z'}
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 02, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq
  • New CVE Received by [email protected]

    Jun. 01, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-94
    Added CWE CWE-89
    Added Reference https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.