Skip to content
OpenAdvisories
High · 8.3 CVE-2026-142187 EUVD-2026-141518GHSA-4wgc-ch5v-g36c

GORM through 1.31.2 contains an sql injection vulnerability in Migrator.CreateView that allows attackers to inject SQL by supplying bound s…

Published Dec 2, 2026 · Assigned by VulnCheck

Description

GORM through 1.31.2 contains an sql injection vulnerability in Migrator.CreateView that allows attackers to inject SQL by supplying bound subquery values containing backslashes. Because logger.ExplainSQL inlines values without escaping backslashes, a backslash-quote sequence terminates the literal early, letting attackers alter view definitions to expose columns like password hashes.

Affected products

VendorProductAffectedFixed
go-gorm GORM 0 ≤1.31.2 —

References