CVE-2026-142187

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.
Configurations

No configuration.

History

02 Dec 2026, 17:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-12-02 17:17

Updated : 2026-12-02 21:18


NVD link : CVE-2026-142187

Mitre link : CVE-2026-142187

CVE.ORG link : CVE-2026-142187


JSON object : View

Products Affected

No product.

CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')