WeKnora: Remote Code Execution via SQL Injection Bypass in AI Database Query Tool
Description
WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. Prior to version 0.2.12, a remote code execution (RCE) vulnerability exists in the application's database query functionality. The validation system fails to recursively inspect child nodes within PostgreSQL array expressions and row expressions, allowing attackers to bypass SQL injection protections. By smuggling dangerous PostgreSQL functions inside these expressions and chaining them with large object operations and library loading capabilities, an unauthenticated attacker can achieve arbitrary code execution on the database server with database user privileges. This issue has been patched in version 0.2.12.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/Tencent/WeKnoraGo | < 0.2.12 | 0.2.12 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-8w32-6mrw-q5wvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-30860ghsaADVISORY
- github.com/Tencent/WeKnora/security/advisories/GHSA-8w32-6mrw-q5wvghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.