GitHub Advisory Database
GHSA-mpv3-g8m3-3fjc
Grafana vulnerable to Authentication Bypass by Spoofing
Details
Grafana is validating Azure AD accounts based on the email claim.
On Azure AD, the profile email field is not unique and can be easily modified.
This leads to account takeover and authentication bypass when Azure AD OAuth is configured with a multi-tenant app.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/grafana/grafana | From 9.4.0 before 9.4.13 (fixed in 9.4.13) |
| Go | github.com/grafana/grafana | From 9.3.0 before 9.3.16 (fixed in 9.3.16) |
| Go | github.com/grafana/grafana | From 9.0.0 before 9.2.20 (fixed in 9.2.20) |
| Go | github.com/grafana/grafana | All versions before 8.5.27 (fixed in 8.5.27) |
References
- https://github.com/grafana/bugbounty/security/advisories/GHSA-gxh2-6vvc-rrgp
- https://nvd.nist.gov/vuln/detail/CVE-2023-3128
- https://github.com/grafana/grafana
- https://github.com/grafana/grafana/blob/69fc4e6bc0be2a82085ab3885c2262a4d49e97d8/CHANGELOG.md
- https://grafana.com/security/security-advisories/cve-2023-3128
- https://security.netapp.com/advisory/ntap-20230714-0004