WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. From version 0.2.5 to before version 0.2.10, an unauthenticated remote code execution (RCE) vulnerability exists in the MCP stdio configuration validation. The application allows unrestricted user registration, meaning any attacker can create an account and exploit the command injection flaw. Despite implementing a whitelist for allowed commands (npx, uvx) and blacklists for dangerous arguments and environment variables, the validation can be bypassed using the -p flag with npx node. This allows any attacker to execute arbitrary commands with the application's privileges, leading to complete system compromise. This issue has been patched in version 0.2.10.
The WeKnora application implements a validation mechanism for the MCP stdio protocol configuration, which includes a whitelist of allowed commands (npx, uvx) and blacklists of dangerous arguments and environment variables. However, the validation can be bypassed by passing the -p flag in combination with the npx node command, which allows injection and execution of arbitrary system commands. Since the application enables unrestricted user account registration, any attacker can create an account and immediately exploit this vulnerability without any additional privileges.
An attacker can execute arbitrary system commands with the privileges of the application process, leading to complete system compromise, including data theft, malware installation, or further lateral movement in the network.
WeKnora should be updated to version 0.2.10 or later, in which the issue has been fixed. Details are available in the official security advisory from the vendor: https://github.com/Tencent/WeKnora/security/advisories/GHSA-r55h-3rwj-hcmg
Tencent WeKnora in versions 0.2.5 to 0.2.9 (inclusive)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HTencent Weknora
APPTencent0.2.5 – 0.2.10 (bez)
Related vulnerabilities
RCE przez SQL Injection w Tencent WeKnora (bypass walidacji wyrażeń PostgreSQL)
Command injection w Tencent WeKnora — wykonanie podprocesów przez MCP stdio
WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. Prior to ...
WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. Prior to ...
WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. Prior to ...