CVE-2026-30860
CRITICAL 9.8CVSS 3.1WeKnora Vulnerable to Remote Code Execution via SQL Injection Bypass in AI Database Query Tool
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.
- Published
- 7 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-89
- Also known as
- GHSA-8w32-6mrw-q5wvGO-2026-4641
- Sources
- NVDJSONOSV GHSA-8w32-6mrw-q5wvJSONOSV GO-2026-4641JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tencent | weknoracpe:2.3:a:tencent:weknora:*:*:*:*:*:*:*:* |
< 0.2.12 | 0.2.12 |
| OSV | Go | github.com/Tencent/WeKnora | < 0.2.12 | 0.2.12 |
| OSV | Go | github.com/Tencent/WeKnora | all versions |
References
- https://github.com/Tencent/WeKnora/security/advisories/GHSA-8w32-6mrw-q5wv · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-30860 · ADVISORY
- https://github.com/Tencent/WeKnora · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 7 Mar 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Mar 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Mar 2026)