grafana: cross site scripting
Published Mar 1, 2023
7.3
HIGHCVSS 3.1
EPSS 15.46%
Description
Grafana is an open-source platform for monitoring and observability.
Starting with the 8.1 branch, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap.
The stored XSS vulnerability was possible due to map attributions 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 a map attribution 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.21, 9.2.13 and 9.3.8 to receive a fix.
Affected products
-
- Version 8.1.0StatusaffectedConstraints<8.5.21
- Version 9.0.0StatusaffectedConstraints<9.2.13
- Version 9.3.0StatusaffectedConstraints<9.3.8
- Version
-
- Version 8.1.0StatusaffectedConstraints<8.5.21
- Version 9.0.0StatusaffectedConstraints<9.2.13
- Version 9.3.0StatusaffectedConstraints<9.3.8
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Grafana | Grafana | unaffected |
| ||||||||||||
| Grafana | Grafana Enterprise | unaffected |
|
No data.
Red Hat Ceph Storage 5.3
rhceph/rhceph-5-dashboard-rhel8:5-83
Fixed · RHSA-2024:0746
OpenShift Service Mesh 2.1
servicemesh-grafana
Not affected
Red Hat Advanced Cluster Management for Kubernetes 2
rhacm2/acm-grafana-rhel8
Affected
Red Hat Ceph Storage 3
grafana
Not affected
Red Hat Ceph Storage 4
rhceph/rhceph-4-dashboard-rhel8
Not affected
Red Hat Enterprise Linux 8
grafana
Not affected
Red Hat Enterprise Linux 9
grafana
Affected
Red Hat OpenShift Container Platform 4
openshift4/ose-grafana
Not affected
Red Hat Storage 3
grafana
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ceph Storage 5.3 | rhceph/rhceph-5-dashboard-rhel8:5-83 | Fixed | RHSA-2024:0746 |
| OpenShift Service Mesh 2.1 | servicemesh-grafana | Not affected | n/a |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-grafana-rhel8 | Affected | n/a |
| Red Hat Ceph Storage 3 | grafana | Not affected | n/a |
| Red Hat Ceph Storage 4 | rhceph/rhceph-4-dashboard-rhel8 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | grafana | Not affected | n/a |
| Red Hat Enterprise Linux 9 | grafana | Affected | n/a |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-grafana | Not affected | n/a |
| Red Hat Storage 3 | grafana | Not affected | n/a |
github.com/grafana/grafana
Go
Introduced 9.3.0 Fixed 9.3.8github.com/grafana/grafana
Go
Introduced 8.1.0 Fixed 8.5.21github.com/grafana/grafana
Go
Introduced 9.0.0 Fixed 9.2.13
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/grafana/grafana | 9.3.0 | 9.3.8 |
| Go | github.com/grafana/grafana | 8.1.0 | 8.5.21 |
| Go | github.com/grafana/grafana | 9.0.0 | 9.2.13 |
Remediation
Red Hat statement
For Grafana package shipped in Red Hat Enterprise Linux, it is not possible to take advantage of this vulnerability without specialized 'editor' access, which reduces the impact of this issue in RHEL. Thus, it is set to Moderate.
Red Hat mitigation
Applying the Content-Security-Policy shipped with Grafana would block inline scripts from executing and would mitigate this.
References (9)
- https://access.redhat.com/security/cve/CVE-2023-0507 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2168038 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-1035 Advisory
- https://github.com/advisories/GHSA-hjv9-hm2f-rpcj Advisory
- https://grafana.com/security/security-advisories/CVE-2023-0507
- https://grafana.com/security/security-advisories/cve-2023-0507 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-0507
- https://security.netapp.com/advisory/ntap-20230413-0001
- https://www.cve.org/CVERecord?id=CVE-2023-0507
Change history (3)
- CISA ADP
SSVC technical impact
changed from total to partialtotal → partial
- CISA ADP
SSVC technical impact
changed from partial to totalpartial → total
- CISA ADP
SSVC technical impact
changed from total to partialtotal → partial