Vulnerability · Published Jan 18, 2022 · Assigned by GitHub_M

CVE-2022-21673OAuth Identity Token exposure in Grafana

Medium 4.3

In plain English

A medium-severity information exposure in grafana from grafana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)2.0%top 19.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8grafana7.5.15-3.el8ALSA-2022:7519
AlmaLinux:9grafana7.5.15-3.el9ALSA-2022:8057
Alpine:v3.20grafana8.3.4-r0ALPINE-CVE-2022-21673
Alpine:v3.21grafana8.3.4-r0ALPINE-CVE-2022-21673
Alpine:v3.22grafana8.3.4-r0ALPINE-CVE-2022-21673
Alpine:v3.23grafana8.3.4-r0ALPINE-CVE-2022-21673
Alpine:v3.24grafana8.3.4-r0ALPINE-CVE-2022-21673
Rocky Linux:8grafana0:7.5.15-3.el8RLSA-2022:7519
Rocky Linux:9grafana0:7.5.15-3.el9RLSA-2022:8057

Affected products (as reported)

VendorProductVersions
grafana grafana >= 7.2.0, < 7.5.13>= 8.0.0, < 8.3.4

Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

References