Grafana authentication bypass using Azure AD OAuth

Critical
Advisory ID:CVE-2023-3128
Published:2023-06-22
Product:Grafana
CVSS Score:9.4
CVSS Vector:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Summary

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.