Skip to content
Medium 8.3

GORMのCreateViewにSQLインジェクションの脆弱性、ビュー定義を改変される恐れ

CVE-2026-142187 First seen on SecPulse

Summary

GORMの1.31.2以前には、Migrator.CreateViewでMySQLとMariaDBを使う際にSQLインジェクションの脆弱性があります。バックスラッシュを含む値を渡されると、攻撃者がビューの定義を書き換え、パスワードハッシュなどの列を見えるようにされるおそれがあります。CVSS v3は6.5、v4は8.3です。修正版の情報は公表されていないため、最新の情報を確認してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

GORMの1.31.2以前には、Migrator.CreateViewでMySQLとMariaDBを使う際にSQLインジェクションの脆弱性があります。バックスラッシュを含む値を渡されると、攻撃者がビューの定義を書き換え、パスワードハッシュなどの列を見えるようにされるおそれがあります。CVSS v3は6.5、v4は8.3です。修正版の情報は公表されていないため、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
go-gormGORM
≤ 1.31.2→ Not listed

This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details