Bug 2050742 (CVE-2022-21703)

Summary: CVE-2022-21703 grafana: CSRF vulnerability can lead to privilege escalation
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agerstmayr, amackenz, amasferr, amctagga, anharris, anpicker, aos-bugs, avibelli, bgeorges, bmontgom, bniver, chazlett, clement.escoffier, dandread, dkreling, drieden, eparis, flucifre, gmeno, gparvin, grafana-maint, gsmet, hamadhan, hvyas, jburrell, jkurik, jochrist, jokerman, jramanat, jwendell, jwon, lthon, mbenjamin, mhackett, mkudlej, nathans, njean, nstielau, pahickey, peholase, pgallagh, pjindal, probinso, rcernich, rdey, rruss, rsvoboda, sbiarozk, sdouglas, security-response-team, sostapov, spasquie, sponnaga, stcannon, tjochec, twalsh, vereddy, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: grafana 7.5.15, grafana 8.3.5 Doc Type: If docs needed, set a value
Doc Text:
A Cross-site request forgery (CSRF) vulnerability was found in Grafana. This flaw allows anonymous attackers to elevate their privileges by mounting cross-origin attacks against authenticated high-privilege Grafana users (for example, editors or admins). An attacker can exploit this vulnerability for privilege escalation by tricking an authenticated user into inviting the attacker as a new user with high privileges.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-05 00:37:43 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: 2052664, 2052665, 2053454, 2053463, 2053464, 2053511, 2053512, 2054039, 2055455, 2055456    
Bug Blocks: 2050646    

Description Mauro Matteo Cascella 2022-02-04 14:48:31 UTC
A CSRF vulnerability was found in Grafana. This flaw allows anonymous attackers to elevate their privileges by mounting cross-origin attacks against authenticated high-privilege Grafana users (for example Editors or Admins). An attacker can exploit this vulnerability for privilege escalation, by tricking an authenticated user into inviting the attacker as a new user with high privileges.

GitHub security advisory:
https://github.com/grafana/grafana/security/advisories/GHSA-cmf4-h3xc-jw8w

Grafana blog post:
https://grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes/

Comment 2 Mauro Matteo Cascella 2022-02-11 11:09:36 UTC
Upstream pull request:
https://github.com/grafana/grafana/pull/45083

Comment 3 Mauro Matteo Cascella 2022-02-11 11:29:05 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-all [bug 2053454]

Comment 16 errata-xmlrpc 2022-11-08 09:25:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7519 https://access.redhat.com/errata/RHSA-2022:7519

Comment 17 errata-xmlrpc 2022-11-15 10:06:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8057 https://access.redhat.com/errata/RHSA-2022:8057

Comment 18 Product Security DevOps Team 2022-12-05 00:37:39 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-21703