#VU62283 Permissions, Privileges, and Access Controls in Grafana - CVE-2022-24812

 

#VU62283 Permissions, Privileges, and Access Controls in Grafana - CVE-2022-24812

Published: April 13, 2022


Vulnerability identifier: #VU62283
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-24812
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Grafana
Software vendor:
Grafana Labs

Description

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 updates from vendor's website.

External links