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.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.6%top 48.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8grafana9.2.10-16.el8_10ALSA-2024:3265
AlmaLinux:9grafana9.2.10-16.el9_4.alma.1ALSA-2024:2568
AlmaLinux:8grafana-selinux9.2.10-16.el8_10ALSA-2024:3265
AlmaLinux:9grafana-selinux9.2.10-16.el9_4.alma.1ALSA-2024:2568
Gogithub.com/grafana/grafanano fix listedGO-2024-2697
Gogithub.com/grafana/grafana10.2.6GHSA-67rv-qpw2-6qrr
Gogithub.com/grafana/grafana10.3.5GHSA-67rv-qpw2-6qrr
Gogithub.com/grafana/grafana9.5.18GHSA-67rv-qpw2-6qrr
Gogithub.com/grafana/grafana10.0.13GHSA-67rv-qpw2-6qrr
Gogithub.com/grafana/grafana10.1.9GHSA-67rv-qpw2-6qrr
Rocky Linux:8grafana0:9.2.10-16.el8_10RLSA-2024:3265
Rocky Linux:9grafana0:9.2.10-16.el9_4RLSA-2024:2568

Affected products (as reported)

VendorProductVersions
Grafana Grafana 9.5.0 – before 9.5.1810.0.0 – before 10.0.1310.1.0 – before 10.1.910.2.0 – before 10.2.610.3.0 – before 10.3.5

Weakness: CWE-639 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

References