CVE-2026-30860 WeKnora: Remote Code Execution via SQL Injection Bypass in AI Database Query Tool
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Tencent github.com/Tencent/WeKnora(Go) | < 0.2.12; <= 0.2.11; All versions | 0.2.12 | Partially fixed |
| Tencent github.com/Tencent/WeKnora | < 0.2.12; = < 0.2.12 | 0.2.12 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Tencent github.com/Tencent/WeKnora(Go) | < 0.2.12 | 0.2.12 |
| Tencent github.com/Tencent/WeKnora(Go) | All versions | No fix listed |
| Tencent github.com/Tencent/WeKnora | = < 0.2.12 | No fix listed |
| Tencent github.com/Tencent/WeKnora(Go) | <= 0.2.11 | No fix listed |
| Tencent github.com/Tencent/WeKnora | < 0.2.12 | 0.2.12 |
References
- https://github.com/Tencent/WeKnora/security/advisories/GHSA-8w32-6mrw-q5wv exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com