Vulnerability · Published Sep 22, 2022 · Assigned by GitHub_M
CVE-2022-36062Grafana folders admin only permission privilege escalation
High 7.6
In plain English
A high-severity security flaw in grafana from grafana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/grafana/grafana | 8.5.13 | GHSA-p978-56hq-r492 |
| Go | github.com/grafana/grafana | 9.0.9 | GHSA-p978-56hq-r492 |
| Go | github.com/grafana/grafana | 9.1.6 | GHSA-p978-56hq-r492 |
| Go | github.com/grafana/grafana | no fix listed | GO-2024-2854 |
Affected products (as reported)
Weakness: CWE-281 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L