Home / langroid / langroid / CVE-2026-50180
CVE-2026-50180: is it exploited, and which versions of langroid are affected and fixed?
CVE-2026-50180 is a path traversal (reading or writing files outside the intended folder) vulnerability in langroid. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: langroid before 0.64.0 (GitHub advisory GHSA-pmch-g965-grmr). Fixed in 0.64.0 (GitHub advisory GHSA-pmch-g965-grmr). Severity: High (8.7, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2026-50180?
Langroid: SQLChatAgent _validate_query blocklist misses pg_read_file family enabling arbitrary file read
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.
From the CVE record by GitHub_M, last updated July 10, 2026, 20:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| langroid | langroid | < 0.64.0 |
As the CVE record by GitHub_M states it, last updated July 10, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | langroid | < 0.64.0 | 0.64.0 | GHSA-pmch-g965-grmr |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 2, 2026. Summary: Langroid: SQLChatAgent _validate_query blocklist misses pg_read_file family enabling arbitrary file read.
How severe is CVE-2026-50180?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | 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 | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-50180 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, July 10, 2026)
- EPSS
- 0.57% probability of exploitation activity in the next 30 days, percentile 48.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/langroid/langroid/security/advisories/GHSA-pmch-g965-grmr x_refsource_CONFIRM
- https://github.com/langroid/langroid/commit/00b7dd7b79c5d03c94be284cf3459d98195ebfba x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 3, 2026
- Published
- July 9, 2026, 23:42 UTC
- CVE record updated
- July 10, 2026, 20:59 UTC by GitHub_M
- NVD
- Deferred, last modified July 10, 2026, 21:16 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect langroid?
- Jul 9, 2026CVE-2026-54771 langroid: failure to Sanitize Special Elements into a Different Plane
- Jul 9, 2026CVE-2026-54769 langroid: code injection (remote code execution)
- Jul 9, 2026CVE-2026-54760 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-50181 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-55615 langroid: injection
- Jun 1, 2026CVE-2026-25879 langroid: SQL injection
- Feb 4, 2026CVE-2026-25481 langroid: code injection (remote code execution)
- May 20, 2025CVE-2025-46725 langroid: code injection (remote code execution)
Questions about CVE-2026-50180
Is CVE-2026-50180 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.57% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of langroid are affected by CVE-2026-50180?
langroid before 0.64.0, per the GitHub advisory GHSA-pmch-g965-grmr. The tables above give every range the sources list.
Which version fixes CVE-2026-50180?
0.64.0, per the GitHub advisory GHSA-pmch-g965-grmr. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-50180?
High (8.7, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-50180?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.