CVE-2022-21673 OAuth Identity Token exposure in Grafana

Medium 4.3 Published Updated

Attackers with API tokens can retrieve unauthorized data by exploiting OAuth identity forwarding in Grafana when specific features are enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-21673?

CVE-2022-21673 is a medium-severity vulnerability in Fedoraproject Fedora, published on 18 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Grafana is an open-source platform for monitoring and observability. In affected versions when a data source has the Forward OAuth Identity feature enabled, sending a query to that datasource with an API token (and no other user credentials) will forward the OAuth Identity of the most recently logged-in user. This can allow API token holders to retrieve data for which they may not have intended access. This attack relies on the Grafana instance having data sources that support the Forward OAuth Identity feature, the Grafana instance having a data source with the Forward OAuth Identity feature toggled on, the Grafana instance having OAuth enabled, and the Grafana instance having usable API keys. This issue has been patched in versions 7.5.13 and 8.3.4.

Weakness: CWE-200

Which versions are affected by CVE-2022-21673?

1 open source package ship an affected version, including grafana. It affects 2 products.

PackageAffectedFixed in
grafana BitnamiFrom 7.2.07.5.13, 8.3.4

Products include Fedoraproject Fedora, Grafana Grafana.

How do I fix CVE-2022-21673?

Upgrade grafana to a fixed version for your release line: 7.5.13 or 8.3.4.

Is CVE-2022-21673 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-grafana-2022-21673, GHSA-8wjh-59cw-9xh4, OESA-2022-1531, UBUNTU-CVE-2022-21673.

Is CVE-2022-21673 in your software?

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

Check your SBOMs for free