---
title: "CVE-2026-25879: Langroid has Prompt to SQL Injection, Leading to RCE"
url: https://erroneo.us/security/cve/CVE-2026-25879/
description: "CVE-2026-25879 (langroid (PyPI)): Langroid is a framework for building large-language-model-powered applications. Prior to version 0.63.0, SQLChatAgent…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-06-01
date_modified: 2026-07-01
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-25879"
kev: false
cvss: 9.8
epss: 0.00695
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-25879: Langroid has Prompt to SQL Injection, Leading to RCE

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7% , percentile 52: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 52% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes langroid (PyPI) < 0.63.0, fixed in 0.63.0 . Check your lockfile, including transitive dependencies.

## What it is

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 pgexecuteserverprogram, MySQL FILE, MSSQL xpcmdshell), 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; allowdangerousoperations=True restores the previous unrestricted behavior for trusted deployments.

## Affected packages

- PyPI `langroid` < 0.63.0 → fixed: 0.63.0

## Affected products (CVE record)

- langroid langroid: < 0.63.0

## Severity

- GitHub_M CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.69% probability of exploitation activity in the next 30 days; percentile 52.

## Sources

- [GitHub Advisory GHSA-mxfr-6hcw-j9rq](https://github.com/advisories/GHSA-mxfr-6hcw-j9rq)
- [CVE.org record CVE-2026-25879](https://www.cve.org/CVERecord?id=CVE-2026-25879)
- [NVD entry CVE-2026-25879](https://nvd.nist.gov/vuln/detail/CVE-2026-25879)
- [github.com](https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq)
- [github.com](https://github.com/pypa/advisory-database/tree/main/vulns/langroid/PYSEC-2026-382.yaml)
- [pypi.org](https://pypi.org/project/langroid)

---
Source page: https://erroneo.us/security/cve/CVE-2026-25879/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
