Privilege escalation in Grafana
CVE-2022-24812
Grafana is an open-source platform for monitoring and observability. 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. This can lead to an escalation of privileges, when for example a 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, essentially accessing higher privilege than it should. The vulnerability is only impacting Grafana Enterprise when the fine-grained access control beta feature is enabled and there are more than one API Keys in one organization with different roles assigned. All installations after Grafana Enterprise v8.1.0-beta1 should be upgraded as soon as possible. As an alternative, disable fine-grained access control will mitigate the vulnerability.
Vulnerability class: Privilege Escalation
EPSS: 0.023 (81.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
Affected products
- Grafana — versions >= 8.1.0-beta1, < 8.4.6
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Patch, Third Party Advisory, Release Notes)
- security-advisories@github.com (Patch, x_refsource_MISC, Release Notes, Vendor Advisory)
- security-advisories@github.com (x_refsource_MISC, Release Notes, Vendor Advisory)
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-24812?
- CVE-2022-24812 is a high-severity vulnerability in Grafana, classified under Improper Privilege Management. CVSS score: 8.0/10. Published 2022-04-12.
- How severe is CVE-2022-24812?
- High severity. CVSS v3 base score is 8.0 out of 10.