CVE-2022-23552
Summary
| CVE | CVE-2022-23552 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-01-27 23:15:00 UTC |
| Updated | 2023-11-07 03:44:00 UTC |
| Description | 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. |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| [v9.3.x] SVG: Add dompurify preprocessor step (#62157) · grafana/grafana@1c8a50b · GitHub | MISC | github.com | |
| [v9.2.x] SVG: Add dompurify preprocessor step (#704) · grafana/grafana@c022534 · GitHub | MISC | github.com | |
| Stored XSS in ResourcePicker component · Advisory · grafana/grafana · GitHub | MISC | github.com | |
| SVG: Add dompurify preprocessor step by nmarrs · Pull Request #62143 · grafana/grafana · GitHub | MISC | github.com | |
| SVG: Add dompurify preprocessor step (#62143) · grafana/grafana@8b574e2 · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 150644 Grafana Stored Cross-Site Scripting (XSS) Vulnerability (CVE-2022-23552)
- 161102 Oracle Enterprise Linux Security Update for grafana security and enhancement update (ELSA-2023-6420)
- 242309 Red Hat Update for grafana (RHSA-2023:6420)
- 691055 Free Berkeley Software Distribution (FreeBSD) Security Update for grafana (ecffb881-a7a7-11ed-8d6a-6c3be5272acd)
- 753815 SUSE Enterprise Linux Security Update for SUSE Manager Client Tools (SUSE-SU-2023:0812-1)
- 941404 AlmaLinux Security Update for grafana (ALSA-2023:6420)