{"answers":{"affected":"12 open source packages ship an affected version, including github.com/grafana/grafana and grafana.","exploited":"There is no known exploitation of CVE-2024-1313 in the wild and no public exploit code.","fix":"Upgrade github.com/grafana/grafana to a fixed version for your release line: 10.0.13, 10.1.9, 10.2.6 or 10.3.5.","what":"CVE-2024-1313 is a medium-severity missing authorization vulnerability in Grafana, published on 26 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-1313 and fix it if it is affected.\n\nWhat it is: CVE-2024-1313 is a medium-severity missing authorization vulnerability in Grafana, published on 26 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-1313 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/grafana/grafana (Go): affected all versions; no fix listed\n- github.com/grafana/grafana (Go): affected from 10.0.0; fixed in 10.0.13\n- github.com/grafana/grafana (Go): affected from 10.0.0; fixed in 10.0.13\n- github.com/grafana/grafana (Go): affected from 10.1.0; fixed in 10.1.9\n- github.com/grafana/grafana (Go): affected from 10.1.0; fixed in 10.1.9\n- github.com/grafana/grafana (Go): affected from 10.2.0; fixed in 10.2.6\n- github.com/grafana/grafana (Go): affected from 10.2.0; fixed in 10.2.6\n- github.com/grafana/grafana (Go): affected from 10.3.0; fixed in 10.3.5\n- github.com/grafana/grafana (Go): affected from 10.3.0; fixed in 10.3.5\n- github.com/grafana/grafana (Go): affected from 9.5.0; fixed in 9.5.18\n- github.com/grafana/grafana (Go): affected from 9.5.0; fixed in 9.5.18\n- grafana (Bitnami): affected from 9.5.0; fixed in 9.5.18, 10.0.13, 10.1.9, 10.2.6, 10.3.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-1313/ (Markdown: https://insights.sbomify.com/CVE-2024-1313/index.md)","id":"CVE-2024-1313","markdown":"https://insights.sbomify.com/CVE-2024-1313/index.md","name":"CVE-2024-1313","record":{"aliases":["BIT-grafana-2024-1313","GHSA-67rv-qpw2-6qrr","GO-2024-2697","MINI-3xxw-p477-vpwf","MINI-4w8g-v6fm-pw8g","MINI-5j65-5ph6-6w2p","MINI-65q3-v7cp-c73j","MINI-89rg-6f2m-2mv9","MINI-9rm7-7mr2-x4x7","MINI-c2jc-xj93-m52q","MINI-fm73-4cxj-wfhr","MINI-g8c8-m456-p9cm","MINI-gj3c-qp9v-j69v","MINI-gvq8-c697-896x","MINI-h7j3-x6rj-4v6x","MINI-hw3x-jwc5-2fj3","MINI-jc4c-5539-ghwx","MINI-ppcj-34wx-ghx7","MINI-rhqj-j3h7-fqxw","MINI-x964-33r5-m9mm","SUSE-SU-2024:1814-1","SUSE-SU-2024:1815-1","UBUNTU-CVE-2024-1313","openSUSE-SU-2024:13831-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana monitoring platform","requires_auth":"low_privilege","summary":"An attacker can delete snapshots belonging to other organizations by exploiting a flaw in the API authorization logic.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"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/\u003ckey\u003e 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.\n\nGrafana Labs would like to thank Ravid Mazon and Jay Chen of Palo \nAlto Research for discovering and disclosing this vulnerability.\n\nThis 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.","ecosystems":["Bitnami","Go","SUSE:Manager Client Tools 12-BETA","SUSE:Manager Client Tools 15-BETA","SUSE:Manager Client Tools Beta for SLE Micro 5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Users outside an organization can delete a snapshot with its key","id":"CVE-2024-1313","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":25,"n_references":2,"next":{"headline":"Classified Listing \u003c= 3.0.4 - Cross-Site Request Forgery to Account Takeover via rtcl_update_user_account","id":"CVE-2024-1315"},"packages":[{"ecosystem":"Bitnami","fixed":["9.5.18","10.0.13","10.1.9","10.2.6","10.3.5"],"introduced":["9.5.0","10.0.0","10.1.0","10.2.0","10.3.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2024-1313"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GO-2024-2697"},{"ecosystem":"Go","fixed":["10.0.13"],"introduced":["10.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["10.0.13"],"introduced":["10.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["10.1.9"],"introduced":["10.1.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["10.1.9"],"introduced":["10.1.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["10.2.6"],"introduced":["10.2.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["10.2.6"],"introduced":["10.2.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["10.3.5"],"introduced":["10.3.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["10.3.5"],"introduced":["10.3.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["9.5.18"],"introduced":["9.5.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"Go","fixed":["9.5.18"],"introduced":["9.5.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-67rv-qpw2-6qrr"},{"ecosystem":"SUSE:Manager Client Tools 12-BETA","fixed":["9.5.18-4.30.4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/suse/grafana\u0026distro=SUSE%20Manager%20Client%20Tools%2012-BETA","source":"SUSE-SU-2024:1815-1"},{"ecosystem":"SUSE:Manager Client Tools 12-BETA","fixed":["5.0.2-4.24.5"],"introduced":["0"],"last_affected":[],"package":"mgr-push","purl":"pkg:rpm/suse/mgr-push\u0026distro=SUSE%20Manager%20Client%20Tools%2012-BETA","source":"SUSE-SU-2024:1815-1"},{"ecosystem":"SUSE:Manager Client Tools 12-BETA","fixed":["5.0.6-41.51.3"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE%20Manager%20Client%20Tools%2012-BETA","source":"SUSE-SU-2024:1815-1"},{"ecosystem":"SUSE:Manager Client Tools 12-BETA","fixed":["5.0.3-3.39.3"],"introduced":["0"],"last_affected":[],"package":"uyuni-common-libs","purl":"pkg:rpm/suse/uyuni-common-libs\u0026distro=SUSE%20Manager%20Client%20Tools%2012-BETA","source":"SUSE-SU-2024:1815-1"},{"ecosystem":"SUSE:Manager Client Tools 12-BETA","fixed":["0.1.9-3.11.4"],"introduced":["0"],"last_affected":[],"package":"uyuni-tools","purl":"pkg:rpm/suse/uyuni-tools\u0026distro=SUSE%20Manager%20Client%20Tools%2012-BETA","source":"SUSE-SU-2024:1815-1"},{"ecosystem":"SUSE:Manager Client Tools 15-BETA","fixed":["9.5.18-159000.4.33.4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/suse/grafana\u0026distro=SUSE%20Manager%20Client%20Tools%2015-BETA","source":"SUSE-SU-2024:1814-1"},{"ecosystem":"SUSE:Manager Client Tools 15-BETA","fixed":["5.0.2-159000.4.24.5"],"introduced":["0"],"last_affected":[],"package":"mgr-push","purl":"pkg:rpm/suse/mgr-push\u0026distro=SUSE%20Manager%20Client%20Tools%2015-BETA","source":"SUSE-SU-2024:1814-1"},{"ecosystem":"SUSE:Manager Client Tools 15-BETA","fixed":["5.0.6-159000.6.51.4"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE%20Manager%20Client%20Tools%2015-BETA","source":"SUSE-SU-2024:1814-1"},{"ecosystem":"SUSE:Manager Client Tools 15-BETA","fixed":["5.0.3-159000.3.39.3"],"introduced":["0"],"last_affected":[],"package":"uyuni-common-libs","purl":"pkg:rpm/suse/uyuni-common-libs\u0026distro=SUSE%20Manager%20Client%20Tools%2015-BETA","source":"SUSE-SU-2024:1814-1"},{"ecosystem":"SUSE:Manager Client Tools 15-BETA","fixed":["0.1.9-159000.3.11.5"],"introduced":["0"],"last_affected":[],"package":"uyuni-tools","purl":"pkg:rpm/suse/uyuni-tools\u0026distro=SUSE%20Manager%20Client%20Tools%2015-BETA","source":"SUSE-SU-2024:1814-1"},{"ecosystem":"SUSE:Manager Client Tools Beta for SLE Micro 5","fixed":["1.7.0-159000.6.5.5"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-node_exporter","purl":"pkg:rpm/suse/golang-github-prometheus-node_exporter\u0026distro=SUSE%20Manager%20Client%20Tools%20Beta%20for%20SLE%20Micro%205","source":"SUSE-SU-2024:1814-1"},{"ecosystem":"SUSE:Manager Client Tools Beta for SLE Micro 5","fixed":["0.1.9-159000.3.11.5"],"introduced":["0"],"last_affected":[],"package":"uyuni-tools","purl":"pkg:rpm/suse/uyuni-tools\u0026distro=SUSE%20Manager%20Client%20Tools%20Beta%20for%20SLE%20Micro%205","source":"SUSE-SU-2024:1814-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["10.3.5-1.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13831-1"}],"prev":{"headline":"Kernel: race condition leads to use after free during vma lock in lock_vma_under_rcu","id":"CVE-2024-1312"},"products":["Grafana"],"published":"2024-03-26","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Grafana"]},"summary":"An attacker can delete snapshots belonging to other organizations by exploiting a flaw in the API authorization logic.","url":"https://insights.sbomify.com/CVE-2024-1313/"}