{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-50180","published":"2026-07-10T00:16:33.197000Z","last_modified":"2026-07-10T21:16:54.860000Z","status":"Deferred","cvss":{"version":"4.0","score":8.7,"severity":"HIGH","vector":"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","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-22","CWE-89"],"cpes":[],"cpes_truncated":false,"vendors":["langroid"],"products":["langroid/langroid"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-pmch-g965-grmr","ecosystem":"PyPI","name":"langroid","purl":"pkg:pypi/langroid","ranges":[{"introduced":"0","fixed":"0.64.0"}],"versions":["0.34.0","0.34.1","0.35.0","0.35.1","0.36.0","0.36.1","0.37.0","0.37.1","0.37.2","0.37.3","0.37.4","0.37.5","0.37.6","0.37.7","0.38.0","0.39.0","0.39.1","0.39.2","0.39.3","0.39.4","0.39.5","0.40.0","0.41.0","0.41.1","0.41.2","0.41.3","0.41.4","0.41.5","0.42.0","0.42.1","0.42.10","0.42.2","0.42.3","0.42.4","0.42.5","0.42.6","0.42.7","0.42.8","0.42.9","0.43.0","0.43.1","0.44.0","0.45.0","0.45.1","0.45.10","0.45.2","0.45.3","0.45.4","0.45.5","0.45.6","0.45.7","0.45.8","0.46.0","0.47.0","0.47.1","0.47.2","0.48.0","0.48.1","0.48.2","0.48.3","0.49.0","0.49.1","0.5.0","0.5.1","0.50.0","0.50.1","0.50.10","0.50.11","0.50.12","0.50.2","0.50.3","0.50.4","0.50.5","0.50.6","0.50.7","0.50.8","0.50.9","0.51.0","0.51.1","0.51.2","0.52.0","0.52.1","0.52.2","0.52.3","0.52.4","0.52.5","0.52.6","0.52.7","0.52.8","0.52.9","0.53.0","0.53.1","0.53.10","0.53.11","0.53.12","0.53.13","0.53.14","0.53.15","0.53.16","0.53.2","0.53.4","0.53.5","0.53.6","0.53.7","0.53.8","0.54.0","0.54.1","0.54.2","0.55.0","0.55.1","0.56.0","0.56.1","0.56.10","0.56.11","0.56.12","0.56.13","0.56.14","0.56.15","0.56.16","0.56.17","0.56.18","0.56.19","0.56.2","0.56.3","0.56.4","0.56.5","0.56.6","0.56.7","0.56.8","0.56.9","0.57.0","0.58.0","0.58.1","0.58.2","0.58.3","0.59.0","0.59.0b1","0.59.0b2","0.59.0b3","0.59.1","0.59.10","0.59.11","0.59.12","0.59.13","0.59.14","0.59.15","0.59.16","0.59.17","0.59.18","0.59.19","0.59.2","0.59.20","0.59.21","0.59.22","0.59.23","0.59.24","0.59.25","0.59.26","0.59.27","0.59.28","0.59.29","0.59.3","0.59.30","0.59.31","0.59.32","0.59.33","0.59.34","0.59.35","0.59.36","0.59.37","0.59.38","0.59.39","0.59.4","0.59.5","0.59.6","0.59.7","0.59.8","0.59.9","0.6.0","0.6.1","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.60.0","0.60.1","0.60.2","0.60.3","0.61.0","0.61.1","0.62.0","0.63.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5"],"versions_truncated":false},{"advisory":"PYSEC-2026-2580","ecosystem":"PyPI","name":"langroid","purl":"pkg:pypi/langroid","ranges":[{"introduced":"0","fixed":"0.64.0"}],"versions":["0.34.0","0.34.1","0.35.0","0.35.1","0.36.0","0.36.1","0.37.0","0.37.1","0.37.2","0.37.3","0.37.4","0.37.5","0.37.6","0.37.7","0.38.0","0.39.0","0.39.1","0.39.2","0.39.3","0.39.4","0.39.5","0.40.0","0.41.0","0.41.1","0.41.2","0.41.3","0.41.4","0.41.5","0.42.0","0.42.1","0.42.10","0.42.2","0.42.3","0.42.4","0.42.5","0.42.6","0.42.7","0.42.8","0.42.9","0.43.0","0.43.1","0.44.0","0.45.0","0.45.1","0.45.10","0.45.2","0.45.3","0.45.4","0.45.5","0.45.6","0.45.7","0.45.8","0.46.0","0.47.0","0.47.1","0.47.2","0.48.0","0.48.1","0.48.2","0.48.3","0.49.0","0.49.1","0.5.0","0.5.1","0.50.0","0.50.1","0.50.10","0.50.11","0.50.12","0.50.2","0.50.3","0.50.4","0.50.5","0.50.6","0.50.7","0.50.8","0.50.9","0.51.0","0.51.1","0.51.2","0.52.0","0.52.1","0.52.2","0.52.3","0.52.4","0.52.5","0.52.6","0.52.7","0.52.8","0.52.9","0.53.0","0.53.1","0.53.10","0.53.11","0.53.12","0.53.13","0.53.14","0.53.15","0.53.16","0.53.2","0.53.4","0.53.5","0.53.6","0.53.7","0.53.8","0.54.0","0.54.1","0.54.2","0.55.0","0.55.1","0.56.0","0.56.1","0.56.10","0.56.11","0.56.12","0.56.13","0.56.14","0.56.15","0.56.16","0.56.17","0.56.18","0.56.19","0.56.2","0.56.3","0.56.4","0.56.5","0.56.6","0.56.7","0.56.8","0.56.9","0.57.0","0.58.0","0.58.1","0.58.2","0.58.3","0.59.0","0.59.0b1","0.59.0b2","0.59.0b3","0.59.1","0.59.10","0.59.11","0.59.12","0.59.13","0.59.14","0.59.15","0.59.16","0.59.17","0.59.18","0.59.19","0.59.2","0.59.20","0.59.21","0.59.22","0.59.23","0.59.24","0.59.25","0.59.26","0.59.27","0.59.28","0.59.29","0.59.3","0.59.30","0.59.31","0.59.32","0.59.33","0.59.34","0.59.35","0.59.36","0.59.37","0.59.38","0.59.39","0.59.4","0.59.5","0.59.6","0.59.7","0.59.8","0.59.9","0.6.0","0.6.1","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.60.0","0.60.1","0.60.2","0.60.3","0.61.0","0.61.1","0.62.0","0.63.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5"],"versions_truncated":false}],"severity":"high","priority_score":67,"links":{"html_es":"/es/cve/CVE-2026-50180/","html_en":"/en/cve/CVE-2026-50180/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-50180","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-50180"},"untrusted":{"vendor_name":"langroid","product_name":"langroid","desc_en":"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.","affected":[{"untrusted_vendor":"langroid","untrusted_product":"langroid","versions":[]}],"references":[{"url":"https://github.com/langroid/langroid/commit/00b7dd7b79c5d03c94be284cf3459d98195ebfba","tags":[]},{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-pmch-g965-grmr","tags":[]}]}}