Lucene search

K
githubGitHub Advisory DatabaseGHSA-8WJH-59CW-9XH4
HistoryMay 14, 2024 - 10:13 p.m.

Grafana Forward OAuth Identity Token can allow users to access some data sources

2024-05-1422:13:44
CWE-200
GitHub Advisory Database
github.com
16
grafana
forward oauth identity
api token
security vulnerability
patches
workarounds
security announcements

3.5 Low

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:M/Au:S/C:P/I:N/A:N

4.3 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

6.6 Medium

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

44.5%

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 [email protected]. 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.

Affected configurations

Vulners
Node
grafanagrafana-image-rendererRange<8.3.4grafana
OR
grafanagrafana-image-rendererRange<7.5.13grafana

3.5 Low

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:M/Au:S/C:P/I:N/A:N

4.3 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

6.6 Medium

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

44.5%