Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/grafana/grafana
  4. ›
  5. CVE-2022-39328

CVE-2022-39328: Grafana Race condition allowing privilege escalation

May 14, 2024

Internal security audit identified a race condition in the Grafana codebase, which allowed an unauthenticated user to query an arbitrary endpoint in Grafana. A race condition in the HTTP context creation could make a HTTP request being assigned the authentication/authorization middlewares of another call. Under heavy load it is possible that a call protected by a privileged middleware receives instead the middleware of a public query. As a result, an unauthenticated user can successfully query protected endpoints.

References

  • github.com/advisories/GHSA-vqc4-mpj8-jxch
  • github.com/grafana/grafana
  • github.com/grafana/grafana/security/advisories/GHSA-vqc4-mpj8-jxch
  • nvd.nist.gov/vuln/detail/CVE-2022-39328
  • security.netapp.com/advisory/ntap-20221215-0003

Code Behaviors & Features

Detect and mitigate CVE-2022-39328 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 9.2.0 before 9.2.4

Fixed versions

  • 9.2.4

Solution

Upgrade to version 9.2.4 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

go/github.com/grafana/grafana/CVE-2022-39328.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.