{"cve":"CVE-2026-25879","nvd":{"published":"2026-06-01T23:16:21.930","modified":"2026-07-21T19:10:00.107","status":"Deferred","description":"Langroid is a framework for building large-language-model-powered applications. Prior to version 0.63.0, SQLChatAgent executes SQL produced by an LLM, which is influenceable by prompt injection. When configured with a database role that has privileges enabling code execution or filesystem access (e.g., PostgreSQL pg_execute_server_program, MySQL FILE, MSSQL xp_cmdshell), an attacker who can shape the agent's input — including indirectly via data returned to the LLM — can coerce execution of dialect-specific primitives such as `COPY ... FROM PROGRAM`, achieving RCE on the database host. Fixed in v0.63.0 by defaulting SQLChatAgent to a SELECT-only sqlglot-parsed statement allowlist with a dialect-aware dangerous-pattern blocklist; allow_dangerous_operations=True restores the previous unrestricted behavior for trusted deployments.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89","CWE-94"],"references":["https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq","https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:37:48.043517290+00:00"},"epss":{"cve":"CVE-2026-25879","score":0.00554,"percentile":0.46285,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-mxfr-6hcw-j9rq","url":"https://osv.dev/vulnerability/GHSA-mxfr-6hcw-j9rq","summary":"Langroid has Prompt to SQL Injection, Leading to RCE","modified":"2026-07-01T23:00:12.968125928Z","packages":[{"ecosystem":"PyPI","name":"langroid","purl":"pkg:pypi/langroid","ranges":["<0.63.0"],"fixed":["0.63.0"]}]},{"id":"PYSEC-2026-382","url":"https://osv.dev/vulnerability/PYSEC-2026-382","summary":"Langroid has Prompt to SQL Injection, Leading to RCE","modified":"2026-07-01T20:22:56.028883Z","packages":[{"ecosystem":"PyPI","name":"langroid","purl":"pkg:pypi/langroid","ranges":["<0.63.0"],"fixed":["0.63.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}