Skip to content
CriticalVulnerabilityLLM-specific

GHSA-8w32-6mrw-q5wv: WeKnora Vulnerable to Remote Code Execution via SQL Injection Bypass in AI Database Query Tool

Published
Record updated
View JSON
Affected
  • github.com/Tencent/WeKnora <= 2.0.11
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

A critical remote code execution flaw in WeKnora's database query tool lets an unauthenticated attacker run arbitrary code on the database server with database user privileges. The Phase 5 validateNode() function in internal/utils/inject.go has no handler for ArrayExpr or RowExpr nodes, so dangerous PostgreSQL functions such as pg_read_file() nested inside array expressions skip validation and pass all seven checks.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.