CVE-2022-23552: Grafana stored XSS in FileUploader component
Grafana is an open-source platform for monitoring and observability. Starting with the 8.1 branch and prior to versions 8.5.16, 9.2.10, and 9.3.4, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap. The stored XSS vulnerability was possible because SVG files weren't properly sanitized and allowed arbitrary JavaScript to be executed in the context of the currently authorized user of the Grafana instance.
An attacker needs to have the Editor role in order to change a panel to include either an external URL to a SVG-file containing JavaScript, or use the data: scheme to load an inline SVG-file containing JavaScript. This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard.
Users may upgrade to version 8.5.16, 9.2.10, or 9.3.4 to receive a fix.
Other sources
The GeoMap and Canvas plugins are core plugins in Grafana, which means that all Grafana instances have GeoMap and Canvas installed. These two plugins are vulnerable to Cross-Site-Scripting where an attacker with an Editor role can add an SVG file containing malicious JavaScript code. When a user with an admin role later edits the GeoMap/Canvas panel, the Javascript is executed.
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2022-23552?
CVE-2022-23552 is a stored XSS vulnerability in the GeoMap plugin of Grafana versions 8.1 to 8.5.16, 9.0.0 to 9.2.10, and 9.3.0 to 9.3.4.
What is the severity of CVE-2022-23552?
CVE-2022-23552 has a severity rating of 5.4 (high).
Which software versions are affected by CVE-2022-23552?
Grafana versions 8.1 to 8.5.16, 9.0.0 to 9.2.10, and 9.3.0 to 9.3.4 are affected by CVE-2022-23552.
How does CVE-2022-23552 affect Grafana?
CVE-2022-23552 allows for a stored XSS attack in the GeoMap plugin of Grafana.
How can I fix CVE-2022-23552?
To fix CVE-2022-23552, it is recommended to upgrade Grafana to version 8.5.16, 9.2.10, or 9.3.4 or later.