CVE-2024-1313Users outside an organization can delete a snapshot with its key
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.
What to do
Fixed builds are available from AlmaLinux, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | grafana | Fix pending | UBUNTU-CVE-2024-1313 | |
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Fixed | 0:9.2.10-16.el9_4 | RHSA-2024:2568 |
| Red Hat Enterprise Linux 9 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fixed | 0:9.2.10-16.el9_4 | RHSA-2024:2568 |
| Red Hat Enterprise Linux 8 | grafana | Fixed | 0:9.2.10-16.el8_10 | RHSA-2024:3265 |
| Red Hat Enterprise Linux 8 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Fixed | 0:9.2.10-16.el8_10 | RHSA-2024:3265 |
| AlmaLinux 9 | grafana | Fixed | 9.2.10-16.el9_4.alma.1 | ALSA-2024:2568 |
| AlmaLinux 9 | grafana-selinux | Fixed | 9.2.10-16.el9_4.alma.1 | ALSA-2024:2568 |
| AlmaLinux 8 | grafana | Fixed | 9.2.10-16.el8_10 | ALSA-2024:3265 |
| AlmaLinux 8 | grafana-selinux | Fixed | 9.2.10-16.el8_10 | ALSA-2024:3265 |
| Rocky Linux 9 | grafana | Fixed | 0:9.2.10-16.el9_4 | RLSA-2024:2568 |
| Rocky Linux 8 | grafana | Fixed | 0:9.2.10-16.el8_10 | RLSA-2024:3265 |
| Go library | github.com/grafana/grafana | Fixed | 10.3.5 | GO-2024-2697 |
What the vendor says
As published in the CVE record by GRAFANA, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Grafana: affected: 9.5.0 to before 9.5.18, 10.0.0 to before 10.0.13, 10.1.0 to before 10.1.9, 10.2.0 to before 10.2.6, 10.3.0 to before 10.3.5, 10.4.0 not affected; fixed in
9.5.18,10.0.13,10.1.9,10.2.6,10.3.5
References
- https://grafana.com/security/security-advisories/cve-2024-1313/
- https://security.netapp.com/advisory/ntap-20240524-0008/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.