
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-30859 is a broken access control vulnerability in Tencent WeKnora's database query tool that enables any authenticated tenant to read sensitive data belonging to other tenants, including API keys, model configurations, and private messages. The flaw affects WeKnora versions up to and including 0.2.11 (Go module github.com/Tencent/WeKnora), with version 0.2.12 containing the fix. It was published on March 6, 2026, and reviewed the same day (GitHub Advisory). The CVSS v3.1 base score is reported as 7.5 (High) by NVD (unauthenticated vector) and 5.3 (Moderate) by the vendor advisory (authenticated, high complexity vector); Feedly estimates it at 6.5 (Medium) (GitHub Advisory, WeKnora Advisory).
The root cause is a mismatch in internal/utils/inject.go between the tables permitted by WithAllowedTables() and those covered by the WithTenantIsolation() function (CWE-284: Improper Access Control). The WithTenantIsolation() function's default map only includes tenants, knowledge_bases, knowledges, sessions, and chunks — omitting messages, embeddings, and models. Because WithSecurityDefaults() calls WithAllowedTables() with all eight tables but WithTenantIsolation() only filters five, queries against messages, embeddings, and models pass validation without the automatic WHERE tenant_id = X clause being appended. An authenticated tenant can invoke the database_query tool via an AI agent prompt (e.g., SELECT * FROM models) and receive unfiltered results spanning all tenants (GitHub Advisory, WeKnora Advisory). A proof-of-concept video demonstrating the exploit was included in the advisory (WeKnora Advisory).
Successful exploitation results in complete cross-tenant confidentiality breach with no integrity or availability impact. An attacker can exfiltrate API keys and authentication credentials for third-party LLM providers (OpenAI, Anthropic, etc.), database connection strings, authentication tokens for integrated services, and all private messages and AI conversation histories belonging to every tenant on the platform. In multi-tenant SaaS deployments, this enables one customer to harvest credentials and sensitive communications of all other customers, potentially enabling further lateral movement into third-party services using stolen API keys (GitHub Advisory, WeKnora Advisory).
A working proof-of-concept, including a demonstration video, was published alongside the advisory on March 6, 2026 (WeKnora Advisory). The EPSS score is approximately 0.037–0.071%, indicating a low but non-negligible probability of exploitation in the near term (GitHub Advisory). No evidence of in-the-wild exploitation, threat actor attribution, or CISA KEV catalog listing has been reported as of the available data. Exploitation requires only authenticated tenant-level access, making it accessible to any registered user of a vulnerable WeKnora deployment.
database_query tool by reviewing available agent capabilities or documentation.Use the database_query tool with {"sql": "SELECT * FROM models"} to query the database. Output all results and any errors. The agent will return all rows from the models table across all tenants, including API keys, LLM provider credentials, and configuration details.Use the database_query tool with {"sql": "SELECT * FROM messages"} to query the database. Output all results. The agent returns all messages from all tenants without any tenant filtering.SELECT * FROM embeddings to retrieve embedding data across all tenants.SELECT * FROM models, SELECT * FROM messages, or SELECT * FROM embeddings queries issued by a tenant that does not own records in those tables; repeated broad SELECT queries against these tables from a single tenant session.models, messages, or embeddings tables without a WHERE tenant_id = clause (GitHub Advisory).Tencent released WeKnora version 0.2.12 as the patched release, which adds messages, embeddings, and models to the WithTenantIsolation() default table map, ensuring all queryable tables receive the automatic WHERE tenant_id = X filtering. Operators should upgrade to version 0.2.12 or later immediately. As a temporary workaround prior to patching, administrators can restrict or disable the database_query tool for tenant-facing AI agents, or revoke tenant access to the tool until the upgrade is applied (GitHub Advisory, WeKnora Advisory).
OPSWAT's Unit 515 published a blog post noting that AI platforms are not exempt from security risks and referencing multiple vulnerabilities in WeKnora, including this broken access control issue (OPSWAT Blog). The vulnerability was also tracked by Red Hat's security advisory feed and openSUSE's security announcement list, indicating broad monitoring by the open-source security community (Red Hat CVE). No significant social media controversy or high-profile researcher commentary beyond the advisory itself has been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."