6.7medium
Grafana vulnerable to spoofing originalUrl of snapshots
- Severity
- 6.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.98% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4724-7jwc-3fpwBIT-GRAFANA-2022-39324GO-2024-2867
Description
Grafana is an open-source platform for monitoring and observability. Prior to versions 8.5.16 and 9.2.8, malicious user can create a snapshot and arbitrarily choose the `originalUrl` parameter by editing the query, thanks to a web proxy. When another user opens the URL of the snapshot, they will be presented with the regular web interface delivered by the trusted Grafana server. The `Open original dashboard` button no longer points to the to the real original dashboard but to the attacker’s injected URL. This issue is fixed in versions 8.5.16 and 9.2.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| grafana grafana | < 8.5.16, >= 9.0.0, < 9.2.8, before 8.5.16, from 9.0.0 before 9.2.8 | CVE List, NVD |
| github.com/grafana/grafana (Go) | from 9.0.0 before 9.2.8, before 8.5.16, all versions | GitHub Advisory Database, Go Vulnerability Database |
| grafana (Bitnami) | before 8.5.16, from 9.0.0 before 9.2.8 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L |
| GitHub | 6.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L |
| NVD | 3.5low CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Grafana is an open-source platform for monitoring and observability. Prior to versions 8.5.16 and 9.2.8, malicious user can create a snapshot and arbitrarily choose the `originalUrl` parameter by editing the query, thanks to a web proxy. When another user opens the URL of the snapshot, they will be presented with the regular web interface delivered by the trusted Grafana server. The `Open original dashboard` button no longer points to the to the real original dashboard but to the attacker’s injected URL. This issue is fixed in versions 8.5.16 and 9.2.8.
GitHub Advisory Database
To create a snapshot (and insert an arbitrary URL) the built-in role Viewer is sufficient. When a dashboard is shared as a local snapshot, the following three fields are offered in the web UI for a user to fill out: • Snapshotname • Expire • Timeout(seconds) After the user confirms creation of the snapshot (i.e. clicks the ”Local Snapshot” button) an HTTP POST request is sent to the Grafana server. The HTTP request contains additional parameters that are not visible in the web UI. The parameter originalUrl is not visible in the web UI, but sent in the HTTP POST request.
The value of the originalUrl parameter is automatically generated. The purpose of the presented originalUrl parameter is to provide a user that views the snapshot the possibility to click on the button in the Grafana web UI and be presented with the dashboard that the snapshot was made out of.
The value of the originalUrl parameter can be arbitrarily chosen by a malicious user that creates the snapshot (Note: by editing the query thanks to a web proxy like Burp) When another user opens the URL of the snapshot, they will be presented with the regular web interface delivered by the trusted Grafana server. The issue here is that the ”Open original dashboard” button no longer points to the to the real original dashboard but to the attacker’s (injected) URL.
Go Vulnerability Database
Grafana Spoofing originalUrl of snapshots in github.com/grafana/grafana.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/grafana/grafana before v8.5.16, from v9.0.0 before v9.2.8.
NVD (es)
Grafana es una plataforma de código abierto para monitoreo y observabilidad. Antes de las versiones 8.5.16 y 9.2.8, los usuarios malintencionados podían crear una instantánea y elegir arbitrariamente el parámetro "originalUrl" editando la consulta, gracias a un proxy web. Cuando otro usuario abra la URL de la instantánea, se le presentará la interfaz web normal proporcionada por el servidor confiable de Grafana. El botón "Abrir panel original" ya no apunta al panel original real sino a la URL inyectada por el atacante. Este problema se solucionó en las versiones 8.5.16 y 9.2.8.
References
| https://github.com/grafana/grafana/security/advisories/GHSA-4724-7jwc-3fpw | advisory, third-party-advisory, web | |
| https://github.com/grafana/grafana/pull/60232 | advisory, fix, patch, third-party-advisory, web | |
| https://github.com/grafana/grafana/pull/60256 | advisory, fix, patch, third-party-advisory, web | |
| https://github.com/grafana/grafana/commit/239888f22983010576bb3a9135a7294e88c0c74a | advisory, fix, patch, third-party-advisory, web | |
| https://github.com/grafana/grafana/commit/d7dcea71ea763780dc286792a0afd560bff2985c | advisory, fix, patch, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20230309-0010/ | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-39324 | advisory, web | |
| https://github.com/grafana/grafana | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39324 changed 2026-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4724-7jwc-3fpw changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2867 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2022-39324 changed 2026-11-03 | Public domain |
| Bitnami Vulnerability Database | BIT-GRAFANA-2022-39324 changed 2026-09-10 | Apache-2.0 |