CVE-2026-142187: Vulnerability in Go-gorm GORM

Patch soon. 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.

CWE-89

Exploitation
None confirmed
Severity
8.3 of 10
Attack likelihood
0.6 % in 30 days
Fix
None recorded
Patch deadline
No deadline set

Details

Advisory ID
GHSA-4wgc-ch5v-g36c
EU ID
EUVD-2026-141518
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-89
Published
2 Dec 2026
Last change
4 Dec 2026
Likelihood rank
Higher than 50 % of all rated vulnerabilities
Analysis status
Awaiting Analysis

Affected products

Affected versions and the first fixed release

  • Go-gorm GORM Through 1.31.2; Version 0 ≤1.31.2. No fixed version recorded

Advisories

Vendor and security advisories

Related