Skip to main content
VulnerabilityPublished Updated

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

Affects langroidSource GCVE Database

0
Compare

Not known to be exploited · CVSS 9.8 Critical : upgrade to 0.63.0 as a priority.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.63.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade langroid to 0.63.0.

Affected software

ProductAffectedFixed in
PyPIlangroidAffected
  • <0.63.0
Fixed in
  • 0.63.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in Langroid version 0.63.0, which defaults SQLChatAgent to a SELECT-only SQL statement allowlist with a dialect-aware blocklist for dangerous patterns. Users should upgrade to version 0.63.0 or later. For deployments requiring unrestricted SQL operations, the allow_dangerous_operations flag must be explicitly enabled only in trusted environments. Until upgraded, users should restrict database roles to minimize privileges that allow execution of system commands and avoid exposing the SQLChatAgent to untrusted input.

Description

Langroid versions prior to 0.63.0 contain a vulnerability in the SQLChatAgent component where SQL queries generated by a large language model (LLM) are executed without sufficient validation. This allows an attacker who can influence the LLM's input to inject SQL commands that leverage database-specific features (e.g., PostgreSQL's COPY FROM PROGRAM) to execute arbitrary system commands, resulting in remote code execution (RCE) on the database host. The vulnerability arises when the database role has elevated privileges that permit such operations. The issue is fixed in version 0.63.0 by restricting SQLChatAgent to a safe subset of SQL commands and blocking dangerous patterns by default. The vulnerability is critical due to its potential for full system compromise via the database server.

References

Community reviews

Loading reviews…