Skip to content
OpenAdvisories
Medium · 6.5 CVE-2024-1313 BIT-grafana-2024-1313EUVD-2024-1120GHSA-67rv-qpw2-6qrrGO-2024-2697

Users outside an organization can delete a snapshot with its key

Published Mar 26, 2024 · Updated Feb 13, 2025 · Assigned by GRAFANA

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 products

VendorProductAffectedFixed
Grafana Grafana 9.5.0 – < 9.5.18, 10.0.0 – < 10.0.13, 10.1.0 – < 10.1.9, 10.2.0 – < 10.2.6, 10.3.0 – < 10.3.5 9.5.18

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS grafana No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 grafana +1 9.2.10-16.el9_4 RHSA-2024:2568
RHEL 8 grafana +1 9.2.10-16.el8_10 RHSA-2024:3265

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 grafana +1 9.2.10-16.el9_4.alma.1 ALSA-2024:2568
AlmaLinux 8 grafana +1 9.2.10-16.el8_10 ALSA-2024:3265

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 grafana 9.2.10-16.el9_4 RLSA-2024:2568
Rocky Linux 8 grafana 9.2.10-16.el8_10 RLSA-2024:3265
ReleasePackageFixed inAdvisory
SLES 15 SP6 grafana 9.5.18-150200.3.56.1 SUSE-SU-2024:1530-2
SLES 15 SP5 golang-github-prometheus-promu 0.14.0-150000.3.18.2 SUSE-SU-2024:1509-1
SLES 15 SP5 grafana 9.5.18-150200.3.56.1 SUSE-SU-2024:1530-1
SLES 12 SP5 golang-github-prometheus-node_exporter 1.7.0-1.30.2 SUSE-SU-2024:1508-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 golang-github-prometheus-node_exporter 1.7.0-1.30.2 SUSE-SU-2024:1508-1
SUSE Manager Proxy Module 4.3 ansible 2.9.27-150000.1.17.2 SUSE-SU-2024:1509-1
SUSE Manager Proxy Module 4.3 uyuni-proxy-systemd-services 4.3.12-150000.1.21.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools for SLE Micro 5 dracut-saltboot 0.1.1710765237.46af599-150000.1.53.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools for SLE Micro 5 uyuni-proxy-systemd-services 4.3.12-150000.1.21.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools Beta for SLE Micro 5 golang-github-prometheus-node_exporter 1.7.0-159000.6.5.5 SUSE-SU-2024:1814-1
SUSE Manager Client Tools Beta for SLE Micro 5 uyuni-tools 0.1.9-159000.3.11.5 SUSE-SU-2024:1814-1
SUSE Manager Client Tools 15 POS_Image-JeOS7 +1 0.1.1710765237.46af599-150000.1.21.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 ansible 2.9.27-150000.1.17.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 dracut-saltboot 0.1.1710765237.46af599-150000.1.53.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 grafana 9.5.18-150000.1.63.2 SUSE-SU-2024:1814-1, SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 mgr-daemon 4.3.9-150000.1.47.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 mgr-push 5.0.2-159000.4.24.5 SUSE-SU-2024:1814-1
SUSE Manager Client Tools 15 spacecmd 4.3.27-150000.3.116.2 SUSE-SU-2024:1814-1, SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 spacewalk-client-tools 4.3.19-150000.3.89.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 spacewalk-koan 4.3.6-150000.3.33.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 uyuni-common-libs 4.3.10-150000.1.39.2 SUSE-SU-2024:1814-1, SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 uyuni-proxy-systemd-services 4.3.12-150000.1.21.2 SUSE-SU-2024:1509-1
SUSE Manager Client Tools 15 uyuni-tools 0.1.9-159000.3.11.5 SUSE-SU-2024:1814-1
SUSE Manager Client Tools 12 golang-github-prometheus-alertmanager 0.26.0-1.27.2 SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 golang-github-prometheus-node_exporter 1.7.0-1.30.2 SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 golang-github-prometheus-promu 0.14.0-1.18.1 SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 grafana 9.5.18-1.63.1 SUSE-SU-2024:1815-1, SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 mgr-daemon 4.3.9-1.47.1 SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 mgr-push 5.0.2-4.24.5 SUSE-SU-2024:1815-1
SUSE Manager Client Tools 12 spacecmd 4.3.27-38.139.1 SUSE-SU-2024:1815-1, SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 spacewalk-client-tools 4.3.19-52.98.1 SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 spacewalk-koan 4.3.6-24.36.1 SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 uyuni-common-libs 4.3.10-1.39.1 SUSE-SU-2024:1815-1, SUSE-SU-2024:1508-1
SUSE Manager Client Tools 12 uyuni-tools 0.1.9-3.11.4 SUSE-SU-2024:1815-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed grafana 10.3.5-1.1 openSUSE-SU-2024:13831-1
openSUSE Leap 15.6 grafana 9.5.18-150200.3.56.1 SUSE-SU-2024:1530-2
openSUSE Leap 15.6 mybatis 3.5.6-150200.5.6.1 SUSE-SU-2024:1530-2
openSUSE Leap 15.5 POS_Image-JeOS7 +1 0.1.1710765237.46af599-150000.1.21.2 SUSE-SU-2024:1509-1
openSUSE Leap 15.5 ansible 2.9.27-150000.1.17.2 SUSE-SU-2024:1509-1
openSUSE Leap 15.5 dracut-saltboot 0.1.1710765237.46af599-150000.1.53.2 SUSE-SU-2024:1509-1
openSUSE Leap 15.5 golang-github-prometheus-promu 0.14.0-150000.3.18.2 SUSE-SU-2024:1509-1
openSUSE Leap 15.5 grafana 9.5.18-150200.3.56.1 SUSE-SU-2024:1530-1
openSUSE Leap 15.5 mybatis 3.5.6-150200.5.6.1 SUSE-SU-2024:1530-1
openSUSE Leap 15.5 spacecmd 4.3.27-150000.3.116.2 SUSE-SU-2024:1509-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 grafana +1 9.2.10-16.el9_4 ELSA-2024-2568
Oracle Linux 8 grafana +1 9.2.10-16.el8_10 ELSA-2024-3265

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/grafana/grafana >= 9.5.0, < 9.5.18 9.5.18 GHSA-67rv-qpw2-6qrr
Go github.com/grafana/grafana >= 10.0.0, < 10.0.13 10.0.13 GHSA-67rv-qpw2-6qrr
Go github.com/grafana/grafana >= 10.1.0, < 10.1.9 10.1.9 GHSA-67rv-qpw2-6qrr
Go github.com/grafana/grafana >= 10.2.0, < 10.2.6 10.2.6 GHSA-67rv-qpw2-6qrr
Go github.com/grafana/grafana >= 10.3.0, < 10.3.5 10.3.5 GHSA-67rv-qpw2-6qrr
Go github.com/grafana/grafana all versions — GO-2024-2697

Advisories 17

References