SB2022041315 - Privilege escalation in Grafana
Published: April 13, 2022
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) Permissions, Privileges, and Access Controls (CVE-ID: CVE-2022-24812)
The vulnerability allows a remote attacker to escalate privileges on the system.
The vulnerability exists due to a design error related to caching of API keys and privilege management. When fine-grained access control is enabled and a client uses Grafana API Key to make requests, the permissions for that API Key are cached for 30 seconds for the given organization. Because of the way the cache ID is constructed, the consequent requests with any API Key evaluate to the same permissions as the previous requests.
As a result, if the first request is made with Admin permissions, and the second request with different API Key is
made with Viewer permissions, the second request will get the cached
permissions from the previous Admin request, resulting in privilege escalation.
Remediation
Install update from vendor's website.
References
- https://github.com/grafana/grafana/security/advisories/GHSA-82gq-xfg3-5j7v
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-4-6/
- https://grafana.com/blog/2022/04/12/grafana-enterprise-8.4.6-released-with-high-severity-security-fix/
- https://github.com/grafana/grafana/releases/tag/v8.4.6