Grafana Enterprise: Viewer role can create, modify and delete Loki alerting rules
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
Grafana's data source proxy did not apply role-based access control to write requests forwarded to Loki data sources. A user holding only the Viewer role on an affected Grafana instance could send POST, PUT and DELETE requests through the proxy to the Loki rules API (/loki/api/v1/rules), allowing them to create, modify and delete Loki alerting rules. Because those rules are stored by Loki rather than by Grafana, the change took effect for every user of that Loki data source, not only for the Viewer who made the request.
Exploitation requires an authenticated Viewer account on the Grafana instance and a configured Loki data source; no other privileges are needed. Both Grafana OSS and Grafana Enterprise are affected. The defect is in Grafana's data source proxy; Loki itself is not vulnerable and does not need to be patched.
Text from CVE List
Affected versions 11
- Grafana Enterpriseaffected: 8.0.0 through 11.5.10CVE List
- Grafana Enterpriseaffected: 11.6.0 through 11.6.16CVE List
- Grafana Enterpriseaffected: 12.0.0 through 12.1.10CVE List
- Grafana Enterpriseaffected: 12.2.0 through 12.2.10CVE List
- Grafana Enterpriseaffected: 12.3.0 through 12.3.8CVE List
- Grafana Enterpriseaffected: 12.4.0 through 12.4.5CVE List
- Grafana Enterpriseaffected: 13.0.0 through 13.0.3CVE List
- Grafana OSSaffected: 12.3.0 through 12.3.8CVE List
- Grafana OSSaffected: 12.4.0 through 12.4.5CVE List
- Grafana OSSaffected: 8.0.0 through 12.3.0CVE List
- Grafana OSSaffected: 13.0.0 through 13.0.3CVE List