CVE-2022-21673: OAuth Identity Token exposure in Grafana

Published Jan 18, 2022
·
Updated

An information-disclosure flaw was found in grafana. When a data source has the Forward OAuth Identity feature enabled, sending a query to that data source with an API token (and no other user credentials) will forward the OAuth Identity of the most recently logged-in user. This flaw allows API token holders to retrieve data to which they may not be authorized.

Other sources

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.

References: https://github.com/grafana/grafana/security/advisories/GHSA-8wjh-59cw-9xh4 https://github.com/grafana/grafana/releases/tag/v8.3.4 https://github.com/grafana/grafana/releases/tag/v7.5.13 https://bugzilla.suse.com/1194873

Red Hat

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.

Impact

All of the following must be true: The Grafana instance has data sources that support the Forward OAuth Identity feature. Graphite users, for example. Some data sources are not susceptible, like Prometheus, as they do not have support for this feature. The option being available is not sufficient enough to determine if the data source is susceptible. The Grafana instance has a data source with the Forward OAuth Identity feature toggled on. The Grafana instance has OAuth enabled. The Grafana instance has usable API keys.

Patches

The following Grafana versions have been patched: v8.3.4 v7.5.13

Workarounds

Administrators of Grafana instances can limit the availability of API tokens.

Reporting security issues

If you think you have found a security vulnerability, please send a report to security@grafana.com. This address can be used for all of Grafana Labs' open source and commercial products (including, but not limited to Grafana, Grafana Cloud, Grafana Enterprise, and grafana.com). We can accept only vulnerability reports at this address. We would prefer that you encrypt your message to us by using our PGP key. The key fingerprint is

F988 7BEA 027A 049F AE8E 5CAA D125 8932 BE24 C5CA

The key is available from keyserver.ubuntu.com.

Security announcements

We maintain a security category on our blog, where we will always post a summary, remediation, and mitigation details for any patch containing security fixes.

You can also subscribe to our RSS feed.

GitHub

Affected Software

11 affected componentsFixes available
redhat/grafana<0:7.5.15-3.el8
0:7.5.15-3.el8
redhat/grafana<0:7.5.15-3.el9
0:7.5.15-3.el9
redhat/grafana<8.3.4
8.3.4
redhat/grafana<7.5.13
7.5.13
go/github.com/grafana/grafana>=8.0.0<8.3.4
8.3.4
go/github.com/grafana/grafana>7.2.0<7.5.13
7.5.13
Grafana Grafana>=7.2.0<7.5.13
Grafana Grafana>=8.0.0<8.3.4
fedoraproject fedora=34
fedoraproject fedora=35
fedoraproject fedora=36

Event History

Jan 18, 2022
CVE Published
12:00 AM
CVE Published
via MITRE·09:35 PM
Data Sourced
via MITRE·09:35 PM
DescriptionSeverityWeakness
May 14, 2024
Advisory Published
via GitHub·10:13 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-21673?

CVE-2022-21673 is an information-disclosure flaw found in Grafana.

2

What is Grafana?

Grafana is an open-source platform for monitoring and observability.

3

How does CVE-2022-21673 affect Grafana?

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.

4

What is the severity of CVE-2022-21673?

CVE-2022-21673 has a severity rating of medium (4 out of 10).

5

How can I fix CVE-2022-21673?

To fix CVE-2022-21673, update Grafana to version 8.3.4 or 7.5.13, depending on the affected version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203