CVE-2022-21673: Grafana is an open-source platform for monitoring and observability.
Medium CVSS 4.3
- CVE id
- CVE-2022-21673
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Grafana Runtimes and servers |
>= 7.2.0, < 7.5.13 >= 8.0.0, < 8.3.4 |
7.5.13, 8.3.4 |
How to fix it
Upgrade Grafana to the fixed release of the line you run: 7.5.13, 8.3.4.
grafana-server -v
- Upgrade Grafana (the grafana/grafana image tag or packages) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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
- CVE-2022-21673 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-21673
- Web: https://github.com/grafana/grafana/releases/tag/v7.5.13
- Web: https://github.com/grafana/grafana/releases/tag/v8.3.4
- Web: https://github.com/grafana/grafana/security/advisories/GHSA-8wjh-59cw-9xh4
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/
- Web: https://security.netapp.com/advisory/ntap-20220303-0004/
- Web: https://github.com/grafana/grafana/releases/tag/v7.5.13
- Web: https://github.com/grafana/grafana/releases/tag/v8.3.4
- Web: https://github.com/grafana/grafana/security/advisories/GHSA-8wjh-59cw-9xh4
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/
- Web: https://security.netapp.com/advisory/ntap-20220303-0004/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.