Vulnerability · Published Mar 26, 2024 · Assigned by GRAFANA
CVE-2024-1313Users outside an organization can delete a snapshot with its key
Medium 6.5
In plain English
A medium-severity authorization bypass via user-controlled key in Grafana from Grafana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
It is possible for a user in a different organization from the owner of a snapshot to bypass authorization and delete a snapshot by issuing a DELETE request to /api/snapshots/<key> using its view key. This functionality is intended to only be available to individuals with the permission to write/edit to the snapshot in question, but due to a bug in the authorization logic, deletion requests issued by an unprivileged user in a different organization than the snapshot owner are treated as authorized. Grafana Labs would like to thank Ravid Mazon and Jay Chen of Palo Alto Research for discovering and disclosing this vulnerability. This issue affects Grafana: from 9.5.0 before 9.5.18, from 10.0.0 before 10.0.13, from 10.1.0 before 10.1.9, from 10.2.0 before 10.2.6, from 10.3.0 before 10.3.5.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | grafana | 9.2.10-16.el8_10 | ALSA-2024:3265 |
| AlmaLinux:9 | grafana | 9.2.10-16.el9_4.alma.1 | ALSA-2024:2568 |
| AlmaLinux:8 | grafana-selinux | 9.2.10-16.el8_10 | ALSA-2024:3265 |
| AlmaLinux:9 | grafana-selinux | 9.2.10-16.el9_4.alma.1 | ALSA-2024:2568 |
| Go | github.com/grafana/grafana | no fix listed | GO-2024-2697 |
| Go | github.com/grafana/grafana | 10.2.6 | GHSA-67rv-qpw2-6qrr |
| Go | github.com/grafana/grafana | 10.3.5 | GHSA-67rv-qpw2-6qrr |
| Go | github.com/grafana/grafana | 9.5.18 | GHSA-67rv-qpw2-6qrr |
| Go | github.com/grafana/grafana | 10.0.13 | GHSA-67rv-qpw2-6qrr |
| Go | github.com/grafana/grafana | 10.1.9 | GHSA-67rv-qpw2-6qrr |
| Rocky Linux:8 | grafana | 0:9.2.10-16.el8_10 | RLSA-2024:3265 |
| Rocky Linux:9 | grafana | 0:9.2.10-16.el9_4 | RLSA-2024:2568 |
Affected products (as reported)
Weakness: CWE-639 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N