github.com/grafana/grafana に 認可不備 (CVE-2023-6152)
概要
github.com/grafana/grafana に 脆弱性 (CVE-2023-6152) が存在。不正な操作・情報露出のリスクがあります。PUT /api/user 経由で攻撃可能。対策: 10.3.3 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
Email validation can easily be bypassed because verify_email_enabled option enable email validation at sign up only.
A user changing it's email after signing up (and verifying it) can change it without verification in /profile.
This can be used to prevent legitimate owner of the email address from signing up.
Another way to prevent email's owner from signing up is by setting Username as an email:
When a new user is registrering, they can set two different email addresses in the Email and Username field, technically having 2 email addresses (because Grafana handles usernames and emails the same in some situations), but only the former is validated.

Here user a prevents owner of bar@example.com to signup.
Details
I don't know exact location but this is related to PUT /api/user handler.
PoC
Bypass email validation:
- Start a new grafana instance using latest version
- Sign up with email foo@example.
- Login to that account.
- Go to profile and change email to bar@example.com
- That's it, your using an email you don't own.
Prevent email's owner from signing up:
- Start a new grafana instance using latest version
- Sign up with email foo@example.
- Login to that account.
- Go to profile and change username (not email) to bar@example.com
- Signout.
- Try to sign up with email b@example.com
- Warni…
出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
github.com/grafana/grafana という製品で、CVE-2023-6152 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに PUT /api/user のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。
対策: github.com/grafana/grafana を 10.3.3 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「github.com/grafana/grafana CVE-2023-6152」を検索してください。
CVE-2023-6152 (github.com/grafana/grafana) — CWE-863
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: PUT /api/user / verify_email_enabled / false
修正バージョン: 10.3.3 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
github.com/grafana/grafana に 認可不備 (CWE-863) があります。攻撃者は PUT /api/user を経由して脆弱な処理に到達できます。
github.com/grafana/grafana の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: PUT /api/user / verify_email_enabled / false。
重要度: ?。不正な操作・情報露出のリスクがあります。
10.3.3 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFのアクセスログで PUT /api/user への異常リクエスト (不正な認証ヘッダ、SQL構文)を検索。 依存ファイル (package-lock.json/requirements.txt/go.sum) で github.com/grafana/grafana のバージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'github.com/grafana/grafana' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/grafana/grafanaを grep し、稼働しているサービス・バージョンを把握する。 -
2ログでの侵入兆候検索 detect
grep 'PUT /api/user' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
PUT /api/userへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3パッチ適用 patch
Upgrade github.com/grafana/grafana to 10.3.3ステージング環境で 10.3.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4事後検証 verify
Replay attack against PUT /api/user on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory nvd.nist.gov
- package github.com
- web github.com
- web grafana.com
- web security.netapp.com