An issue has been discovered in GitLab EE affecting all versions starting from 12.5 before 15.0.5, all versions starting from 15.1 before 15.1.4, all versions starting from 15.2 before 15.2.1. GitLab was not performing correct authentication on Grafana API under specific conditions allowing unauthenticated users to perform queries through a path traversal vulnerability.
https://hackerone.com/reports/1566306
https://gitlab.com/gitlab-org/gitlab/-/issues/364252
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2531.json