CVE-2022-23552 json
Grafana stored XSS in FileUploader component
published 2023-01-27 3 y ago modified 2026-11-03 5 d ago also BIT-grafana-2022-23552 , EUVD-2022-28569 , GHSA-8xmm-x63g-f6xv
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami grafana 8.5.16, 9.2.10, 9.3.4
- grafana grafana 8.5.16, 9.2.10, 9.3.4
- grafana RHEL 9 9.2.10-7.el9_3
red hat advisories RHSA-2023:6420
- rhnlib Manager Client Tools 15-BETA 5.0.1-159000.6.30.1
- ansible Manager Client Tools 15-BETA 2.9.27-159000.3.9.1
- grafana Manager Client Tools 15-BETA 9.5.8-159000.4.24.1
- mgr-push Manager Client Tools 15-BETA 5.0.1-159000.4.21.1
- spacecmd Manager Client Tools 15-BETA 5.0.1-159000.6.42.1
- python-hwdata Manager Client Tools 15-BETA 2.3.5-159000.5.13.1
- python-pyvmomi Manager Client Tools 15-BETA 6.7.3-159000.3.6.1
- dracut-saltboot Manager Client Tools Beta for SLE Micro 5, Manager Client Tools 15-BETA 0.1.1681904360.84ef141-159000.3.30.1
suse advisories SUSE-SU-2024:0196-1SUSE-SU-2024:0191-1SUSE-SU-2023:0821-1SUSE-SU-2023:0812-1SUSE-SU-2023:0811-1
- grafana openSUSE Tumbleweed 8.5.20-1.1
opensuse advisories openSUSE-SU-2024:12659-1
- grafana AlmaLinux 9 9.2.10-7.el9_3.alma.1
almalinux advisories ALSA-2023:6420
- github.com/grafana/grafana@1c8a50b commit
- github.com/grafana/grafana@8b574e2 commit
- github.com/grafana/grafana@c022534 commit
- github.com/grafana/grafana#62143 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-23552 updated cvss 7.5
grafana: persistent xss in grafana core plugins
-
Red Hat Enterprise Linux AppStream (v. 9) grafana 9.2.10-7.el9_3fixed: vendor fix RHSA-2023:6420
-
Red Hat OpenShift Service Mesh 2.1 servicemesh-grafana Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/acm-grafana-rhel8 Red Hat Ceph Storage 3 grafana Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat Ceph Storage 5 rhceph/rhceph-5-dashboard-rhel8 Red Hat Enterprise Linux 8 grafana, grafana-loki, grafana-mssql, grafana-mysql, grafana-selinux, grafana-graphite, +8 morenot affected: vulnerable code not present
+2 more productsfewer
Red Hat OpenShift Container Platform 4 openshift4/ose-grafana Red Hat Storage 3 grafana
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 9 mo ago
Exploit prediction
0.81% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | grafana | >=8.1.0, <8.5.16 >=9.0.0, <9.2.10 >=9.3.0, <9.3.4 |
8.5.16 9.2.10 9.3.4 |
Affected products
- grafana grafana
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/grafana/grafana/pull/62143
patch, third-party-advisory, advisory
-
github.com
/grafana/grafana/commit/1c8a50b36973bd59a1cc5f34c30de8a9a6a431f0
patch, third-party-advisory, advisory
-
github.com
/grafana/grafana/commit/8b574e22b53aa4c5a35032a58844fd4aaaa12f5f
patch, third-party-advisory, advisory
-
github.com
/grafana/grafana/commit/c022534e3848a5d45c0b3face23b43aa44e4400a
patch, third-party-advisory, advisory
-
github.com
/grafana/grafana/security/advisories/GHSA-8xmm-x63g-f6xv
third-party-advisory, advisory
-
security.netapp.com
/advisory/ntap-20230302-0008/
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-23552
web
Sources
- CVE List CVE-2022-23552
- NVD CVE-2022-23552
- OSV BIT-grafana-2022-23552
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.