CVE-2026-50180
Last modified
CVE-2026-50180 is a high-severity vulnerability rated 8.7/10 on the CVSS scale. Langroid is a framework for building large-language-model-powered applications. Prior to version 0.64.0, `SQLChatAgent` in `langroid` ships a `_validate_query` defense-in-depth layer whose `_DANGEROUS_SQL_PATTERNS` regex blocklist enumerates dangerous SQL primitives by specific function name. EPSS estimates a 0.69% chance of exploitation in the next 30 days.
Description
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.64.0, `SQLChatAgent` in `langroid` ships a `_validate_query` defense-in-depth layer whose `_DANGEROUS_SQL_PATTERNS` regex blocklist enumerates dangerous SQL primitives by specific function name. The list misses the canonical PostgreSQL filesystem-disclosure family `pg_read_file()`, `pg_stat_file()`, `pg_ls_logdir()`, `pg_ls_waldir()`, `pg_current_logfile()` (and similar `SELECT`-shaped functions in the same family). It also leaves SQL Server `OPENDATASOURCE` and SQLite `ATTACH '<file>' AS x` (DATABASE keyword omitted) unblocked. An attacker able to shape the LLM's generated SQL (directly via prompt input or transitively via prompt-injection in data the LLM ingests) can read arbitrary files from the PostgreSQL host through ordinary `SELECT` queries, even with the agent's strict default configuration (`allow_dangerous_operations=False`, `allowed_statement_types=['SELECT']`). The payloads survive the statement-type allowlist (each is a `SELECT`) and pass through the regex blocklist (none of the function names match), then reach the live SQLAlchemy engine via `SQLChatAgent.run_query`. Version 0.64.0 contains a patch for the issue.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| langroid | langroid | < 0.64.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-50180?
How severe is CVE-2026-50180?
How do I fix CVE-2026-50180?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-50170Angular is a development platform for building mobile and de…7.5
- CVE-2026-50171Angular is a development platform for building mobile and de…6.1
- CVE-2026-50176The WebSocket Application Programming Interface lacks restri…8.7
- CVE-2026-50178The Angular Language Service VS Code Extension provides a ri…8.8
- CVE-2026-50179Actual is a local-first personal finance tool. Prior to 26.6…4.2
- CVE-2026-5018A weakness has been identified in code-projects Simple Food …9.8
- CVE-2026-50181Langroid is a framework for building large-language-model-po…7.1
- CVE-2026-50182WWBN AVideo is an open source video platform. Versions prior…6.1
- CVE-2026-50183WWBN AVideo is an open source video platform. Versions 29.0 …4.7
- CVE-2026-50184Angular is a development platform for building mobile and de…6.1
- CVE-2026-50185RustCrypto CMOV provides conditional move CPU intrinsics whi…2
- CVE-2026-50188Kirby is an open-source content management system. Prior to …6.9
Are you affected by CVE-2026-50180?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
