Bug 2125521 (CVE-2022-36062)

Summary: CVE-2022-36062 grafana: Grafana RBAC folders/dashboards privilege escalation
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agerstmayr, amctagga, anstephe, aoconnor, avibelli, bgeorges, bniver, chazlett, clement.escoffier, dandread, dkreling, flucifre, gmeno, go-sig, gparvin, grafana-maint, gsmet, hamadhan, jkurik, jochrist, jramanat, jwendell, jwon, lthon, mbenjamin, mgoodwin, mhackett, mszynkie, nathans, njean, ovanders, pahickey, peholase, pgallagh, pjindal, probinso, rcernich, rruss, rsvoboda, sbiarozk, sdouglas, security-response-team, sostapov, stcannon, twalsh, vereddy
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: grafana 9.1.6, grafana 9.0.9, grafana 8.5.13 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Grafana. This vulnerability impacts folders/dashboards with Admin-only permissions and where role-based access control (RBAC) was ever enabled at least once. When RBAC is enabled, Grafana runs migrations that translate legacy access control permissions into RBAC permissions. The migrations contain a bug, which grants additional access to folders/dashboards that only had the Admin role grant, resulting in a privilege escalation where Editors can edit and Viewers can view the folder/dashboard to which they should not have access.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-27 19:55:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2126029, 2126030, 2126031, 2126032    
Bug Blocks: 2125519    

Description Avinash Hanwate 2022-09-09 08:32:15 UTC
This vulnerability impacts Grafana instances where RBAC was enabled at least once and only folders/dashboards with Admin-only permissions. When RBAC is enabled, Grafana runs migrations which translate legacy access control permissions into RBAC permissions. The migrations contain a bug, which grants additional access to folders and dashboards which only had Admin role grant, resulting in a privilege escalation where Editors can edit and Viewers can view the folder/dashboard to which they should not have access to.

Comment 5 Product Security DevOps Team 2022-11-27 19:55:25 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-36062