Description
Dify before 1.16.0-rc1 contains a SQL injection vulnerability in the MyScale vector store backend that allows attackers to execute arbitrary SQL by supplying unsanitized search parameters to the search_by_full_text method without escaping or parameterization. Attackers can inject malicious SQL through the search parameters to read, modify, or delete data in the underlying ClickHouse database.
Problem types
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Product status
Any version before 1.16.0-rc1
Credits
YU SUN
References
github.com/langgenius/dify/releases/tag/1.16.0-rc1 (Release Notes)
github.com/langgenius/dify/issues/38281 (Researcher Disclosure)
github.com/langgenius/dify/pull/38295 (Pull Request)
github.com/...ommit/d9884efaeea8322706e24c560d2c17e5bf3fab5f (Patch Commit)
www.vulncheck.com/...yscale-vector-store-search-by-full-text