{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-25879","id":"CVE-2026-25879","title":"Langroid has Prompt to SQL Injection, Leading to RCE","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 ","descriptionLong":"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.","published":"2026-06-01T22:27:13.071Z","updated":"2026-10-28T02:30:33.400199269Z","reserved":"2026-02-06T21:08:39.128Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["langroid"],"affectedProducts":[{"vendor":"langroid","product":"langroid","defaultStatus":null,"versions":[{"version":"< 0.63.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langroid","purl":"pkg:pypi/langroid","ranges":["<0.63.0"],"fixed":["0.63.0"],"advisory":"GHSA-mxfr-6hcw-j9rq"}],"cwes":["CWE-89","CWE-94"],"aliases":["GHSA-mxfr-6hcw-j9rq","PYSEC-2026-382"],"references":[{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-mxfr-6hcw-j9rq","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25879.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25879","tags":["advisory"]},{"url":"https://github.com/langroid/langroid","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langroid/PYSEC-2026-382.yaml","tags":["web"]},{"url":"https://pypi.org/project/langroid","tags":["web","package"]},{"url":"https://github.com/advisories/GHSA-mxfr-6hcw-j9rq","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.00554,"epssPercentile":0.47056,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-25879","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25879","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-25879","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mxfr-6hcw-j9rq","ok":true,"note":"GHSA-mxfr-6hcw-j9rq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-25879","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}