字号·· | 护眼
漏洞档案 · 严重

Grafana 快照认证绕过(CVE-2021-39226)

CVE-2021-39226 别名:GHSA-69J6-29VR-P3J9
CVSS 9.8 / 3.1 EPSS 99.9% CISA KEV 在野利用 公开 PoC Nuclei 模板
综合风险96/ 100
CVSS9.8严重
EPSS99.9%30 天利用概率
机构收录时间2021-10-06更新 2026-12-01

研判简报

概述

Grafana 快照功能存在认证绕过问题:未认证与已认证用户均可通过字面路径 /dashboard/snapshot/:key 或 /api/snapshots/:key 访问数据库键值最小的快照。当 public_mode 配置为 true(默认 false)时,未认证用户还可通过 /api/snapshots-delete/:deleteKey 删除该快照;已认证用户无论该配置如何均可删除。查看与删除结合可遍历全部快照数据并造成完整数据丢失。所有暴露于网络的 Grafana 实例运营方都应关注。

严重性

官方记录 CVSS 9.8(CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H),综合风险分 96.19/100。EPSS 30 天利用概率 99.9%(百分位 100.0%,日期 2026-11-24)。攻击面为面向公网的 Grafana HTTP 接口,无需认证即可触发。

利用状态

CISA KEV 已收录(2022-08-25),KEV 要求动作:按厂商说明应用更新,期限 2022-09-15。已有公开 Nuclei 检测模板(http/cves/2021/CVE-2021-39226.yaml),Exploit-DB/公开 PoC 1 条。CISA SSVC:automatable=yes / exploitation=active / technical_impact=total。以上状态核查日期为 2026-11-24。材料未给出勒索软件关联信息。

受影响产品

Grafana Labs / Grafana。受影响区间:grafana:grafana >= 8.0.0, < 8.1.6;grafana:grafana < 7.5.11。官方公告称影响自 2.0.1 起的版本,与 NVD 区间记录存在出入,以官方记录为准并注意该范围更宽。组件为快照功能相关 HTTP 端点;部署形态涉及自建实例与 Grafana Cloud(官方称 Cloud 已修补)。

修复版本

官方已发布修复版本 8.1.6 与 7.5.11。材料未给出其他补丁信息。

缓解措施

无法立即升级时,可使用反向代理或类似手段阻断对字面路径 /api/snapshots/:key、/api/snapshots-delete/:deleteKey、/dashboard/snapshot/:key 的访问;官方说明这些路径无正常功能,禁用无副作用。

响应步骤

  1. 盘点资产并确认 Grafana 版本是否落在受影响区间,优先升级至 8.1.6 或 7.5.11。
  2. 检索反向代理/负载均衡访问日志中上述路径且响应状态码为 200 的记录。
  3. 若启用 router_logging = true,排查 requestUri 含 /api/snapshots-delete/、/api/snapshots/:key 或 type:snapshot 与 action:delete 组合的日志。
  4. 发现可疑命中即按官方建议进行完整评估,并核查快照数据完整性与丢失情况。
  5. 暂不能升级时,立即在反向代理层阻断上述路径并持续监控。

参考来源

  1. https://grafana.com/blog/2021/10/05/grafana-7.5.11-and-8.1.6-released-with-critical-security-fix/kev
  2. https://nvd.nist.gov/vuln/detail/CVE-2021-39226kev
  3. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39226.yamlexploit,nuclei
  4. https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  5. https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269x_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  6. https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/x_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  7. https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/x_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  8. http://www.openwall.com/lists/oss-security/2021/10/05/4mailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  9. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  10. https://security.netapp.com/advisory/ntap-20211029-0008/x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  11. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226government-resource
  13. https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-2169advisory,euvd
  14. https://unit42.paloaltonetworks.com/recent-exploits-network-security-trends/kev
  15. https://euvd.enisa.europa.eu/enisa/EUVD-2021-2169kev
  16. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev