🛡️ CVE-2021-39226 on Ubuntu — grafana
Description
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.
Distribution advisory
This page covers CVE-2021-39226 as tracked by Ubuntu, for the package grafana. No fixed version has been recorded for this distribution yet.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Affected software
UBUNTU-CVE-2021-39226 is recorded against 1 package.
- grafana
Timeline and source
Published on 5 October 2021 and last revised on 24 October 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
ubuntu.com (Report)
github.com (Report)
www.openwall.com (Report)
www.cve.org (Report)
www.cisa.gov (Report)
CVE-2021-39226 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| grafana | — | — |
References
Similar Threats
- Unknown ALSA-2024:6947
- Unknown ALSA-2024:5291
- Unknown ALSA-2024:3265
- Unknown ALSA-2024:2568
- Unknown ALSA-2024:1646
More UBUNTU CVE 2021 advisories
Browse all of UBUNTU CVE 2021 in the advisory index.
- UBUNTU-CVE-2021-39202
- UBUNTU-CVE-2021-39203
- UBUNTU-CVE-2021-39209
- UBUNTU-CVE-2021-39210
- UBUNTU-CVE-2021-39211
- UBUNTU-CVE-2021-39212
- UBUNTU-CVE-2021-39213
- UBUNTU-CVE-2021-39214
- UBUNTU-CVE-2021-39239
- UBUNTU-CVE-2021-39241
- UBUNTU-CVE-2021-39247
- UBUNTU-CVE-2021-39251
- UBUNTU-CVE-2021-39252
- UBUNTU-CVE-2021-39253
- UBUNTU-CVE-2021-39254
- UBUNTU-CVE-2021-39255
Site Security Check
Is grafana part of your stack?
UBUNTU-CVE-2021-39226 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.