ADVISORIES

Red Hat VEX

RHVEX-CVE-2023-22462

grafana: stored XSS vulnerability affecting the core plugin "Text"

Moderate No fix available CVE-2023-22462

Details

A flaw was found in the Grafana core plugin, "Text." The vulnerability was possible due to React's render cycle that will pass through unsanitized HTML code. However, the HTML is cleaned and saved in Grafana's database in the next cycle. An attacker needs the Editor role in changing a Text panel to include JavaScript. Later, another user needs to edit the same Text panel and click "Markdown" or "HTML" to execute the code. This issue allows possible vertical privilege escalation, where a user with an Editor role can change to a known password for a user having an Admin role if the user with an Admin role executes malicious JavaScript viewing a dashboard.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:8grafana
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-azure-monitor
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-cloudwatch
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-elasticsearch
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-graphite
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-influxdb
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-loki
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-mssql
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-mysql
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-opentsdb
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-postgres
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-prometheus
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-selinux
All versions, will not be fixed
Red Hat:enterprise_linux:8grafana-stackdriver
All versions, will not be fixed
Red Hat:enterprise_linux:9grafana
All versions, will not be fixed
Red Hat:enterprise_linux:9grafana-selinux
All versions, will not be fixed

References