CVE-2021-39226KEV · OVERDUECWE-287

Snapshot authentication bypass in grafana

Critical · published October 5, 2021

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 9.8. It is confirmed in active exploitation. It sits in the 100.0th percentile for exploit probability.

1500
days past CISA
deadline
CVSS v3.1
9.8
EPSS
100%
Percentile
100.0
In the wild
Confirmed
What it is

🚨 Unauthenticated users could delete critical dashboard snapshots in Grafana! It’s like handing out keys to your data without checking who’s at the door. 🔥 Think of a restaurant where the kitchen staff not only sees every order but can also delete any dish on the menu without permission — chaos! This vulnerability enables unauthorized access to sensitive snapshots and even allows deletion, which could leave your data kitchen empty. An attacker could walk in and delete the most crucial snapshots, leading to complete data loss. This would not just hinder data analysis but could result in an absolute disaster for teams relying on that information for decision-making!

Put simply

Think of a restaurant where the kitchen staff not only sees every order but can also delete any dish on the menu without permission — chaos! This vulnerability enables unauthorized access to sensitive snapshots and even allows deletion, which could leave your data kitchen empty. CVE-2021-39226 allows both unauthenticated and authenticated users to view and delete the snapshot with the lowest database key via specific API calls, especially when the 'public_mode' setting is enabled.

What to do

An attacker could walk in and delete the most crucial snapshots, leading to complete data loss. This would not just hinder data analysis but could result in an absolute disaster for teams relying on that information for decision-making! Upgrade to Grafana versions 8.1.6 or 7.5.11 immediately to secure your data! If upgrading isn't feasible, consider using a reverse proxy to block access to the vulnerable paths: /api/snapshots/:key, /api/snapshots-delete/:deleteKey, and /dashboard/snapshot/:key. You've got this! Implement these fixes, and you'll have your Grafana environment locked down tight! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.99933 · 100.0th percentile
Weakness
CWE-287 · Improper Authentication
Published
2021-10-05T17:30Z
KEV added
2022-08-25 · due 2022-09-15
EPSS history
Timeline
  • 25 AUG 00:00Z
    Added to CISA KEV — remediate by Sep 15
    kev
  • 05 OCT 17:30Z
    Snapshot authentication bypass in grafana
    cvelistv5