Bug 2589029 (CVE-2026-142187) - CVE-2026-142187 gorm.io/gorm: github.com/go-gorm/gorm: gorm.io/gorm: Information disclosure via SQL injection in database view creation
Summary: CVE-2026-142187 gorm.io/gorm: github.com/go-gorm/gorm: gorm.io/gorm: Informat...
Keywords:
Status: NEW
Alias: CVE-2026-142187
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-02 20:32 UTC by OSIDB Bzimport
Modified: 2026-12-02 21:34 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-02 20:32:02 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.