GORM before 1.9.10 allows SQL injection via incomplete parentheses. NOTE: Misusing Gorm by passing untrusted user input where Gorm expects trusted SQL fragments is a vulnerability in the application, not in Gorm
https://github.com/jinzhu/gorm/releases/tag/v1.9.10
https://github.com/go-gorm/gorm/pull/2674
https://github.com/go-gorm/gorm/pull/2519
https://github.com/go-gorm/gorm/issues/2517#issuecomment-638145427