Bug 2044628 (CVE-2022-21673) - CVE-2022-21673 grafana: Forward OAuth Identity Token can allow users to access some data sources
Summary: CVE-2022-21673 grafana: Forward OAuth Identity Token can allow users to acces...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-21673
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2046614 2046615 2046616 2050685 2054912 2054913
Blocks: 2044623
TreeView+ depends on / blocked
 
Reported: 2022-01-24 20:43 UTC by Todd Cullum
Modified: 2023-09-01 02:53 UTC (History)
40 users (show)

Fixed In Version: grafana 8.3.4, grafana 7.5.13
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2022-03-10 21:31:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:02:29 UTC
Red Hat Product Errata RHSA-2022:6024 0 None None None 2022-08-09 20:32:27 UTC
Red Hat Product Errata RHSA-2022:7519 0 None None None 2022-11-08 09:25:20 UTC
Red Hat Product Errata RHSA-2022:8057 0 None None None 2022-11-15 10:05:47 UTC

Description Todd Cullum 2022-01-24 20:43:43 UTC
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

Comment 3 Sandipan Roy 2022-01-27 04:41:05 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-all [bug 2046615]

Comment 13 errata-xmlrpc 2022-03-10 16:02:26 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.10

Via RHSA-2022:0056 https://access.redhat.com/errata/RHSA-2022:0056

Comment 14 Product Security DevOps Team 2022-03-10 21:31:12 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-21673

Comment 16 errata-xmlrpc 2022-08-09 20:32:24 UTC
This issue has been addressed in the following products:

  Red Hat Ceph Storage 5.2

Via RHSA-2022:6024 https://access.redhat.com/errata/RHSA-2022:6024

Comment 17 errata-xmlrpc 2022-11-08 09:25:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7519 https://access.redhat.com/errata/RHSA-2022:7519

Comment 18 errata-xmlrpc 2022-11-15 10:05:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8057 https://access.redhat.com/errata/RHSA-2022:8057


Note You need to log in before you can comment on or make changes to this bug.