Critical severity · published Jul 9, 2026
CVE-2026-54760
Langroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file calls
9.3
CVSS
0.6%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 51% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LA
langroid · langroid
< 0.65.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-54760
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-54760
github.com
https://github.com/langroid/langroid/security/advisories/GHSA-6xc5-4r68-67fc
More from langroid
10.0
CVE-2026-54769
Langroid: Sandbox Escape to Remote Code Execution via Incomplete `eval()` Mitigation in TableChatAgent
9.8
CVE-2026-25879
Langroid has Prompt to SQL Injection, Leading to RCE
9.8
CVE-2025-46725
Langroid is a Python framework to build large language model (LLM)-powered applications
9.8
CVE-2025-46724
Langroid is a Python framework to build large language model (LLM)-powered applications
9.6
CVE-2026-25481
Langroid has WAF Bypass Leading to RCE in TableChatAgent
