Vulnerability identifier: #VU62283
Vulnerability risk: Medium
CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-264
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
Grafana
Web applications /
Other 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.
Mitigation
Install updates from vendor's website.
Vulnerable software versions
Grafana: 8.4.0 - 8.4.5, 8.3.0 - 8.3.7, 8.2.0 - 8.2.7, 8.1.0 - 8.1.8
External links
http://github.com/grafana/grafana/security/advisories/GHSA-82gq-xfg3-5j7v
http://grafana.com/docs/grafana/latest/release-notes/release-notes-8-4-6/
http://grafana.com/blog/2022/04/12/grafana-enterprise-8.4.6-released-with-high-severity-security-fix/
http://github.com/grafana/grafana/releases/tag/v8.4.6
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.