CVE-2022-2531
GitLab vulnerability analysis and mitigation

Overview

An issue was discovered in GitLab Enterprise Edition (EE) affecting all versions starting from 12.5 before 15.0.5, all versions starting from 15.1 before 15.1.4, and all versions starting from 15.2 before 15.2.1. The vulnerability allowed unauthenticated users to perform queries through a path traversal vulnerability due to incorrect authentication on the Grafana API under specific conditions (GitLab Security Release, NVD).

Technical details

The vulnerability stems from improper authentication validation in GitLab's Grafana integration. When the Grafana integration is configured, the /grafana/proxy endpoint becomes accessible to any user with project access, including unauthenticated users on public projects. The vulnerability allows attackers to make API calls to any datasource with proxy access using the configured Admin API token. The severity is rated as medium with a CVSS v3.1 base score of 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) (NVD).

Impact

The vulnerability allows unauthenticated access to all datasources of a victim's Grafana server. This could potentially expose Prometheus data, Elasticsearch data, and provide access to connected databases. The attack is particularly concerning as datasource IDs are simple integers starting from 1, making enumeration of Grafana instances straightforward (GitLab Issue).

Mitigation and workarounds

The vulnerability has been patched in versions 15.0.5, 15.1.4, and 15.2.1. GitLab strongly recommends that all installations running affected versions be upgraded to the latest version immediately. The patch was released on July 28, 2022, and GitLab.com was already running the patched version at the time of disclosure (GitLab Security Release).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2024-9183MEDIUM6.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 05, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management