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.
Published: 2026-12-02
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No solution or workaround provided in the CVE record.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Dec 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 03 Dec 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 02 Dec 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title GORM through 1.31.2 SQL Injection via Migrator.CreateView on MySQL and MariaDB
First Time appeared Gorm
Gorm gorm
Weaknesses CWE-89
CPEs cpe:2.3:a:gorm:gorm:*:*:*:*:*:*:*:*
Vendors & Products Gorm
Gorm gorm
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 8.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-12-02T20:24:00.917Z

Reserved: 2026-12-02T15:28:33.447Z

Link: CVE-2026-142187

cve-icon Vulnrichment

Updated: 2026-12-02T20:22:34.041Z

cve-icon NVD

Status : Received

Published: 2026-12-02T17:17:39.587

Modified: 2026-12-02T21:18:12.373

Link: CVE-2026-142187

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-12-02T16:51:03Z

Links: CVE-2026-142187 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-12-03T16:15:02Z

Weaknesses
  • CWE-89

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