CVE-2022-36062 Grafana folders admin only permission privilege escalation
Attackers with Editor or Viewer roles can escalate privileges to edit folders due to improper permission migration when RBAC is enabled after initial setup.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-36062?
CVE-2022-36062 is a high-severity vulnerability in Grafana Grafana, published on 22 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Grafana is an open-source platform for monitoring and observability. In versions prior to 8.5.13, 9.0.9, and 9.1.6, Grafana is subject to Improper Preservation of Permissions resulting in privilege escalation on some folders where Admin is the only used permission. The vulnerability impacts Grafana instances where RBAC was disabled and enabled afterwards, as the migrations which are translating legacy folder permissions to RBAC permissions do not account for the scenario where the only user permission in the folder is Admin, as a result RBAC adds permissions for Editors and Viewers which allow them to edit and view folders accordingly. This issue has been patched in versions 8.5.13, 9.0.9, and 9.1.6. A workaround when the impacted folder/dashboard is known is to remove the additional permissions manually.
Weakness: CWE-281
Which versions are affected by CVE-2022-36062?
8 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/grafana/grafana Go | All versions | None |
github.com/grafana/grafana Go | From 8.5.0 | 8.5.13 |
github.com/grafana/grafana Go | From 8.5.0 | 8.5.13 |
github.com/grafana/grafana Go | From 9.0.0 | 9.0.9 |
github.com/grafana/grafana Go | From 9.0.0 | 9.0.9 |
github.com/grafana/grafana Go | From 9.1.0 | 9.1.6 |
2 more packages
github.com/grafana/grafana Go | From 9.1.0 | 9.1.6 |
grafana Bitnami | All versions | 8.5.13, 9.0.9, 9.1.6 |
Products include Grafana Grafana.
How do I fix CVE-2022-36062?
Upgrade github.com/grafana/grafana to a fixed version for your release line: 8.5.13, 9.0.9 or 9.1.6.
Is CVE-2022-36062 being exploited?
There is no known exploitation of CVE-2022-36062 in the wild and no public exploit code.
Other vulnerabilities in Grafana Grafana
Sources
Also known as BIT-grafana-2022-36062, GHSA-p978-56hq-r492, GO-2024-2854, MINI-2fcr-mp78-cc4q, MINI-398h-mjjf-m96j, MINI-4892-2q28-fxq9 and 15 more.