CVE-2026-25879
CVE-2026-25879 is a critical vulnerability in Langroid's SQLChatAgent (versions <0.63.0) that allows attackers to execute arbitrary code on a database host via prompt injection. The flaw arises when the agent executes untrusted SQL generated by an LLM, especially if the database role has elevated privileges. A fix exists in version 0.63.0, which restricts SQL operations to safe queries by default.
An official fix is available, so this entry is kept for 30 days and then removed automatically.
Who is affected
Users of Langroid framework versions prior to 0.63.0
Real-world impact
Attackers could gain full control of the database server, leading to data theft, deletion, or system compromise.
Why this severity
CVSS 9.8 (critical): High risk due to remote code execution without user interaction or privileges.
What to do about it
- 01Upgrade Langroid to version 0.63.0 or later.
- 02Ensure the SQLChatAgent is configured with the default SELECT-only allowlist and dangerous-pattern blocklist.
NVD-referenced vendor advisory
Timeline
- Jun 1, 2026 · Jun 1, 2026PublishedDisclosed and added to the National Vulnerability Database.
- Jul 21, 2026 · 14d agoAdvisory updatedThe NVD record was last revised.
- Jul 21, 2026 · 14d agoOfficial fix availableA vendor patch or mitigation now exists — see the remediation steps above.