GHSA-mh7p-8m2f-qrm6: Duplicate Advisory Grafana Vulnerable To Authorization Bypass Vulnerability

MODERATE
CVSS 6.5
CWE-639
Published
Advisory Summary

GHSA-mh7p-8m2f-qrm6 is a MODERATE (CVSS 6.5) grafana vulnerable to authorization bypass vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves grafana vulnerable to authorization bypass. Remediation is available by upgrading affected packages to version 9.5.18, 10.0.13, 10.1.9, 10.2.6, 10.3.5.

GHSA-mh7p-8m2f-qrm6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mh7p-8m2f-qrm6
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-mh7p-8m2f-qrm6

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/grafana/grafana fixed: 9.5.18
Upgrade github.com/grafana/grafana to 9.5.18
github.com/grafana/grafana fixed: 10.0.13
Upgrade github.com/grafana/grafana to 10.0.13
github.com/grafana/grafana fixed: 10.1.9
Upgrade github.com/grafana/grafana to 10.1.9
github.com/grafana/grafana fixed: 10.2.6
Upgrade github.com/grafana/grafana to 10.2.6
github.com/grafana/grafana fixed: 10.3.5
Upgrade github.com/grafana/grafana to 10.3.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/grafana/grafana

How to Check if You Are Affected

To determine whether your application is affected by GHSA-mh7p-8m2f-qrm6, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/grafana/grafana

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.5.18), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-67rv-qpw2-6qrr. This link is maintained to preserve external references. ## Original 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.

GHSA-mh7p-8m2f-qrm6 Affected Duplicate Advisory Versions

5 component(s)
Fixed Versions:
9.5.1810.0.1310.1.910.2.610.3.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana
Go
≥ 9.5.0
< 9.5.18
9.5.18
github.com/grafana/grafana
Go
≥ 10.0.0
< 10.0.13
10.0.13
github.com/grafana/grafana
Go
≥ 10.1.0
< 10.1.9
10.1.9
github.com/grafana/grafana
Go
≥ 10.2.0
< 10.2.6
10.2.6
github.com/grafana/grafana
Go
≥ 10.3.0
< 10.3.5
10.3.5

References

Frequently Asked Questions

What is GHSA-mh7p-8m2f-qrm6?
GHSA-mh7p-8m2f-qrm6 is a security vulnerability in Duplicate Advisory involving Grafana vulnerable to authorization bypass under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 9.5.18, 10.0.13, 10.1.9, 10.2.6, 10.3.5 across affected packages: github.com/grafana/grafana.
What version fixes GHSA-mh7p-8m2f-qrm6?
Upgrading to 9.5.18, 10.0.13, 10.1.9, 10.2.6, 10.3.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/grafana affected?
Yes, github.com/grafana/grafana is affected in releases prior to 9.5.18, 10.0.13, 10.1.9, 10.2.6, 10.3.5. Upgrade your dependency to 9.5.18, 10.0.13, 10.1.9, 10.2.6, 10.3.5 or later.
What is the CVSS score of GHSA-mh7p-8m2f-qrm6?
GHSA-mh7p-8m2f-qrm6 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-mh7p-8m2f-qrm6?
GHSA-mh7p-8m2f-qrm6 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Go dependencies for GHSA-mh7p-8m2f-qrm6?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/grafana'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mh7p-8m2f-qrm6",
  "modified" : "2024-06-10T18:30:53Z",
  "published" : "2024-03-26T18:32:07Z",
  "withdrawn" : "2024-04-05T19:30:35Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Grafana vulnerable to authorization bypass",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-67rv-qpw2-6qrr. This link is maintained to preserve external references.\n\n## Original Description\nIt 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.\n\nGrafana Labs would like to thank Ravid Mazon and Jay Chen of Palo Alto 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.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.5.0"
      }, {
        "fixed" : "9.5.18"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.1.0"
      }, {
        "fixed" : "10.1.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.2.0"
      }, {
        "fixed" : "10.2.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.3.0"
      }, {
        "fixed" : "10.3.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1313"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/grafana"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2024-1313"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20240524-0008"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-27T02:01:45Z",
    "nvd_published_at" : "2024-03-26T18:15:09Z"
  }
}