CVE-2024-6322 Grafana plugin data sources vulnerable to access control bypass

Medium 4.4 Published Updated

Attackers with access to one data source can bypass access controls to read data from other protected data sources in Grafana.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-6322?

CVE-2024-6322 is a medium-severity missing authorization vulnerability in Grafana, published on 20 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Access control for plugin data sources protected by the ReqActions json field of the plugin.json is bypassed if the user or service account is granted associated access to any other data source, as the ReqActions check was not scoped to each specific datasource. The account must have prior query access to the impacted datasource.

Weakness: CWE-266

Which versions are affected by CVE-2024-6322?

10 open source packages ship an affected version, including github.com/grafana/grafana and grafana.

PackageAffectedFixed in
github.com/grafana/grafana GoAll versionsNone
github.com/grafana/grafana GoFrom 0.0.0-20240521130516-0072e4a92d890.0.0-20240725142242-c326d865c58b
github.com/grafana/grafana GoFrom 0.0.0-20240521130516-0072e4a92d890.0.0-20240725142242-c326d865c58b
github.com/grafana/grafana GoFrom 1.9.2-0.20240521130516-0072e4a92d891.9.2-0.20240725142242-c326d865c58b
github.com/grafana/grafana GoFrom 1.9.2-0.20240521130516-0072e4a92d891.9.2-0.20240725142242-c326d865c58b
github.com/grafana/grafana GoFrom 11.1.011.1.1
4 more packages
github.com/grafana/grafana GoFrom 11.1.011.1.1
github.com/grafana/grafana GoFrom 11.1.211.1.3
github.com/grafana/grafana GoFrom 11.1.211.1.3
grafana BitnamiFrom 11.1.011.1.3

How do I fix CVE-2024-6322?

Upgrade github.com/grafana/grafana to a fixed version for your release line: 0.0.0-20240725142242-c326d865c58b, 1.9.2-0.20240725142242-c326d865c58b, 11.1.1 or 11.1.3.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-6322 being exploited?

There is no known exploitation of CVE-2024-6322 in the wild and no public exploit code.

Sources

Also known as BIT-grafana-2024-6322, GHSA-hh8p-374f-qgr5, GO-2024-3079, MINI-28h6-pfvp-vwvp, MINI-43x9-gq98-37wm, MINI-4jq3-cjjh-c4w3 and 15 more.

Is CVE-2024-6322 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free