CVE-2022-21673: Grafana Forward OAuth Identity Token can allow users to access some data sources
2.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.59535%
CWE
Published
5/14/2024
Updated
5/14/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/grafana/grafana | go | > 7.2.0, < 7.5.13 | 7.5.13 |
| github.com/grafana/grafana | go | >= 8.0.0, < 8.3.4 | 8.3.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper context handling in datasource_proxy.go operations. Key functions in pkg/api/datasource_proxy.go are responsible for forwarding authentication headers. The system incorrectly used cached OAuth tokens from previous user sessions when processing API token-authenticated requests, rather than validating() the current user context. This matches the vulnerability's core mechanism where API token usage could access stale OAuth credentials. The high confidence comes from the architectural role of these functions in authentication forwarding and the patch versions specifically addressing proxy handling in release notes.