Vulnerability · Published Jan 27, 2023 · Assigned by GitHub_M
CVE-2022-39324Grafana vulnerable to spoofing originalUrl of snapshots
Medium 6.7
In plain English
A medium-severity cross-site scripting in grafana from grafana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | grafana | 9.2.10-7.el9_3.alma.1 | ALSA-2023:6420 |
| Go | github.com/grafana/grafana | 9.2.8 | GHSA-4724-7jwc-3fpw |
| Go | github.com/grafana/grafana | 8.5.16 | GHSA-4724-7jwc-3fpw |
| Go | github.com/grafana/grafana | no fix listed | GO-2024-2867 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
References
- https://github.com/grafana/grafana/security/advisories/GHSA-4724-7jwc-3fpw x_refsource_CONFIRM
- https://github.com/grafana/grafana/pull/60232 x_refsource_MISC
- https://github.com/grafana/grafana/pull/60256 x_refsource_MISC
- https://github.com/grafana/grafana/commit/239888f22983010576bb3a9135a7294e88c0c74a x_refsource_MISC
- https://github.com/grafana/grafana/commit/d7dcea71ea763780dc286792a0afd560bff2985c x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20230309-0010/