WeKnora: Remote Code Execution via SQL Injection Bypass in AI Database Query Tool
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Tencent | WeKnora | before 0.2.12 | 0.2.12 | Patch available | CNA |
| — | github.com/Tencent/WeKnora (Go) | before 0.2.12 | 0.2.12 | Patch available | GHSA-8w32-6mrw-q5wv |
- WeKnora VendorTencent Affected before 0.2.12 Fixed in 0.2.12 Patch available CNA
- github.com/Tencent/WeKnora (Go) Vendor— Affected before 0.2.12 Fixed in 0.2.12 Patch available GHSA-8w32-6mrw-q5wv
Remediation
- Fix · CNA WeKnora (Tencent) Fixed in 0.2.12
- Fix · GHSA-8w32-6mrw-q5wv github.com/Tencent/WeKnora (Go) Fixed in 0.2.12 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-30860
- 2026-10-03 Alias added: GHSA-8w32-6mrw-q5wv
References
More Tencent Weknora vulnerabilities
- TI-2026-23690 WeKnora: Remote Code Execution (RCE) via Command Injection in MCP Stdio Configuration Validation CVSS 3.1CRITICAL 10.0
- TI-2026-18215 WeKnora has Command Injection in MCP stdio test CVSS 3.1CRITICAL 10.0
- TI-2026-18214 WeKnora vulnerable to SQL Injection CVSS 3.1CRITICAL 9.8
- TI-2026-23684 WeKnora: Broken Access Control in Tenant Management CVSS 3.1HIGH 8.8
- TI-2025-10116 Tencent WeKnora test testEmbeddingModel server-side request forgery CVSS 4.0MEDIUM 6.9
- TI-2026-23687 WeKnora: DNS Rebinding Vulnerability in web_fetch Tool Allows SSRF to Internal Resources CVSS 3.1HIGH 7.5
Sources
- CVE-2026-30860 · CVE Program
- CVE-2026-30860 · NVD
- FIRST EPSS
- GHSA-8w32-6mrw-q5wv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences