Authentication Bypass in Grafana labs github.com/grafana/grafana
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.
A vulnerability tracked as CVE-2021-39226 has been found in Grafana labs github.com/grafana/grafana.
Risk of unauthorized operations or information disclosure.
Note: CISA has officially confirmed this is actively exploited in the wild. Treat it with elevated urgency.
What to do: upgrade Grafana labs github.com/grafana/grafana to 8.1.6 or later.
If unsure, ask your IT team or search "Grafana labs github.com/grafana/grafana CVE-2021-39226" on the vendor's site.
CVE-2021-39226 (Grafana labs github.com/grafana/grafana) — CWE-287
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 8.1.6 — apply immediately
Listed in CISA KEV — actively exploited, treat as top priority.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Authentication bypass (CWE-287) exists in Grafana labs github.com/grafana/grafana.
Check the vendor advisory for the affected versions of Grafana labs github.com/grafana/grafana.
Severity: High. Risk of unauthorized operations or information disclosure. Listed in CISA KEV — actively exploited in the wild, treat as top priority.
Update to 8.1.6.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/grafana/grafana' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
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
Consider incident declarationescalate
Notify SOC / on-callCISA KEV登録済 = 実環境で悪用が観測されている。侵入の兆候があればインシデント対応宣言、無くてもパッチ適用までWAF強化を最優先で。
-
3
Apply patchpatch
Upgrade Grafana labs github.com/grafana/grafana to 8.1.6ステージング環境で 8.1.6 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Gogithub.com/grafana/grafana |
≥ 8.0.0, < 8.1.6→ 8.1.6 |
8.1.6 |
| Bitnamigrafana |
< 7.5.11→ 7.5.11 ≥ 8.0.0, < 8.1.6→ 8.1.6 |
7.5.11 8.1.6 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2021-39226 grafana No fixed version in this record
Original description The description as published by the source.
Grafana is an open source data visualization platform. In affected versions unauthenticated and authenticated users are able to view the snapshot with the lowest database key by accessing the literal paths: /dashboard/snapshot/:key, or /api/snapshots/:key. If the snapshot "public_mode" configuration setting is set to true (vs default of false), unauthenticated users are able to delete the snapshot with the lowest database key by accessing the literal path: /api/snapshots-delete/:deleteKey. Regardless of the snapshot "public_mode" setting, authenticated users are able to delete the snapshot with the lowest database key by accessing the literal paths: /api/snapshots/:key, or /api/snapshots-delete/:deleteKey. The combination of deletion and viewing enables a complete walk through all snapshot data while resulting in complete snapshot data loss. This issue has been resolved in versions 8.1.6 and 7.5.11. If for some reason you cannot upgrade you can use a reverse proxy or similar to block access to the literal paths: /api/snapshots/:key, /api/snapshots-delete/:deleteKey, /dashboard/snapshot/:key, and /api/snapshots/:key. They have no normal function and can be disabled without side effects.
Source: CISA Known Exploited Vulnerabilities NVD GitHub Advisory CISA KEV
References
- advisory openwall.com
- advisory grafana.com
- advisory grafana.com
- advisory security.netapp.com
- package github.com
- patch github.com
- report github.com
- web nvd.nist.gov
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web cisa.gov
- web grafana.com
- web grafana.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web security.netapp.com