DescriptionTencent WeKnora through 0.9.1 contains an incorrect authorization vulnerability in the database_query agent tool that allows tenant admins to read other tenants' data by wrapping tables in a TABLESAMPLE clause. Attackers can configure a controlled chat model and custom agent to run queries where the sampled table skips tenant predicate injection, exposing other tenants' document chunks.