CVE-2018-18624 Grafana XSS via a column style
An attacker can execute arbitrary scripts in Grafana via a column style in the Table Panel, potentially leading to session hijacking or data theft.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-18624?
CVE-2018-18624 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 2 Jun 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Grafana 5.3.1 has XSS via a column style on the "Dashboard > Table Panel" screen. NOTE: this issue exists because of an incomplete fix for CVE-2018-12099.
Weakness: CWE-79
Which versions are affected by CVE-2018-18624?
3 open source packages ship an affected version, including github.com/grafana/grafana. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/grafana/grafana Go | All versions | None |
github.com/grafana/grafana Go | All versions | 7.0.0 |
github.com/grafana/grafana Go | All versions | 7.0.0 |
Products include Grafana Grafana.
How do I fix CVE-2018-18624?
Upgrade github.com/grafana/grafana to 7.0.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2018-18624 being exploited?
There is no known exploitation of CVE-2018-18624 in the wild and no public exploit code.
Other vulnerabilities in Grafana Grafana
Sources
Also known as GHSA-9hv8-4frf-cprf, GO-2024-2516, MINI-638w-p673-p59x, MINI-63mr-cmc9-x272, MINI-8m8m-55f5-8pqj, MINI-93q3-wqv8-h343 and 14 more.