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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | grafana | 7.5.15-3.el8 | ALSA-2022:7519 |
| AlmaLinux:9 | grafana | 7.5.15-3.el9 | ALSA-2022:8057 |
| Alpine:v3.20 | grafana | 8.3.4-r0 | ALPINE-CVE-2022-21673 |
| Alpine:v3.21 | grafana | 8.3.4-r0 | ALPINE-CVE-2022-21673 |
| Alpine:v3.22 | grafana | 8.3.4-r0 | ALPINE-CVE-2022-21673 |
| Alpine:v3.23 | grafana | 8.3.4-r0 | ALPINE-CVE-2022-21673 |
| Alpine:v3.24 | grafana | 8.3.4-r0 | ALPINE-CVE-2022-21673 |
| Rocky Linux:8 | grafana | 0:7.5.15-3.el8 | RLSA-2022:7519 |
| Rocky Linux:9 | grafana | 0:7.5.15-3.el9 | RLSA-2022:8057 |
Affected products (as reported)
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/grafana/grafana/security/advisories/GHSA-8wjh-59cw-9xh4 x_refsource_CONFIRM
- https://github.com/grafana/grafana/releases/tag/v7.5.13 x_refsource_MISC
- https://github.com/grafana/grafana/releases/tag/v8.3.4 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220303-0004/ x_refsource_CONFIRM
- FEDORA-2022-83405f9d5b vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-9dd03cab55 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-c5383675d9 vendor-advisory, x_refsource_FEDORA