P3 · MediumCVSS 6.5EPSS 0.6%
GORM through 1.31.2 SQL Injection via Migrator.CreateView on MySQL and MariaDB
- CVE-2026-142187
- GHSA-4wgc-ch5v-g36c
- EUVD-2026-141518
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.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
go-gorm GORM
Affected versions Fixed in up to 1.31.2 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.