SEPTEMBER 18, 2026
Live Feed
Back to database
Case File

CVE-2026-54760

CRITICAL · CVSS 9.3 EPSS 0.56% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-07-10 · Last synced 2026-08-09

CyberRota Analysis

AI-Generated

The Langroid framework, specifically the `SQLChatAgent` component prior to version 0.65.1, is vulnerable to SQL injection due to an insufficiently restrictive regex blocklist that fails to account for certain PostgreSQL function call formats. This vulnerability allows attackers to bypass mitigation measures and potentially execute unauthorized file read operations, compromising the security of applications built on this framework. Developers and organizations utilizing Langroid should prioritize upgrading to version 0.65.1 to mitigate this risk.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

GitHub PoC Links

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-54760
Severity
CRITICAL
CVSS
9.3
EPSS
0.56%

Original NVD Description

Langroid is a framework for building large-language-model-powered applications. Prior to version 0.65.1, the `SQLChatAgent` SQL-injection mitigation, with default `allow_dangerous_operations=False`, combines a raw-text regex blocklist (`_DANGEROUS_SQL_PATTERNS`) with a `sqlglot` SELECT-only statement allowlist. The blocklist entries that target callable functions require the function name to be immediately followed by `\s*\(`. PostgreSQL accepts the same call with the name separated from `(` by a quoted identifier, an inline comment, or schema qualification. These forms evade the regex, still parse as `SELECT`, and execute the same PostgreSQL function. This restores the `pg_read_file` server-side file-read primitive that the prior CVE-2026-25879 / GHSA-pmch-g965-grmr fix was meant to block: the parent advisory fixed a missing `pg_read_file` blocklist entry, while this report shows that the added regex is bypassable. Version 0.65.1 fixes the issue.