{"id":"CVE-2021-22538","aliases":["CVE-2021-22538","GHSA-5v95-v8c8-3rh6","GO-2022-0798"],"related":[],"kind":"vulnerability","state":"published","title":"Privilege escalation in RBAC system","summary":"A privilege escalation vulnerability impacting the Google Exposure Notification Verification Server (versions prior to 0.23.1), allows an attacker who (1) has UserWrite permissions and (2) is using a carefully crafted request or malicious proxy, to create another user with higher privileges than their own. This occurs due to insufficient checks on the allowed set of permissions. The new user creation event would be captured in the Event Log.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A privilege escalation vulnerability impacting the Google Exposure Notification Verification Server (versions prior to 0.23.1), allows an attacker who (1) has UserWrite permissions and (2) is using a carefully crafted request or malicious proxy, to create another user with higher privileges than their own. This occurs due to insufficient checks on the allowed set of permissions. The new user creation event would be captured in the Event Log.","source":"cvelist"},{"lang":"en","text":"### Impact\nUsing a carefully crafted request or malicious proxy, a user with `UserWrite` permissions could create another user with higher privileges than their own due to insufficient checks on the allowed set of permissions. The event would be captured in the Event Log.\n\n### Patches\nThe issue has been fixed in 0.24.0 and 0.23.1.\n\n### Workarounds\nFor users who are unable to upgrade, we recommend auditing users who have `UserWrite` permissions and regularly reviewing the Event Log for malicious activity.\n\n### Kudos\nThank you to Michael Mazzolini (Ethical Hacker at WHO) for finding and disclosing this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Privilege escalation in rbac in github.com/google/exposure-notifications-verification-server","format":"markdown","source":"go"},{"lang":"es","text":"Una vulnerabilidad de escalada de privilegios que afecta al Google Exposure Notification Verification Server (versiones anteriores a 0.23.1), permite a un atacante que (1) tenga permisos de UserWrite y (2) esté usando una petición cuidadosamente diseñada o un proxy malicioso, crear otro usuario con un nivel de privilegios mayores que los suyos.&#xa0;Esto se presenta debido a controles insuficientes sobre el conjunto permitido de permisos.&#xa0;El evento de creación de nuevo usuario se capturaría en el Registro de Eventos.","source":"nvd"}],"published":"2021-03-31T21:10:13.000Z","modified":"2026-07-08T06:29:54.377Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-276"],"affected":[{"ranges":[{"type":"custom","introduced":"stable","lastAffected":"0.23.0","status":"affected"}],"vendor":"Google LLC","product":"Exposure Notifications Verification Server","platforms":["all"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.23.1"}],"ecosystem":"Go","package":"github.com/google/exposure-notifications-verification-server","purl":"pkg:golang/github.com/google/exposure-notifications-verification-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.23.1"}],"ecosystem":"Go","package":"github.com/google/exposure-notifications-verification-server","purl":"pkg:golang/github.com/google/exposure-notifications-verification-server","source":"go"},{"ranges":[{"status":"affected","fixed":"0.23.1"}],"vendor":"google","product":"exposure_notifications_verification_server","cpe":"cpe:2.3:a:google:exposure_notifications_verification_server:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/google/exposure-notifications-verification-server/security/advisories/GHSA-5v95-v8c8-3rh6","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/google/exposure-notifications-verification-server/commit/eb8cf40b12dbe79304f1133c06fb73419383cd95","tags":["fix","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/google/exposure-notifications-verification-server/releases/tag/v0.23.1","tags":["release-notes","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/google/exposure-notifications-verification-server/releases/tag/v0.24.0","tags":["release-notes","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22538","tags":["advisory"],"sources":["ghsa","go"]}],"credits":["Michael Mazzolini (Ethical Hacker at WHO)"],"assigner":"Google","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22538","url":"https://www.cve.org/CVERecord?id=CVE-2021-22538","licence":"CVE Terms of Use","modified":"2024-08-03T18:44:13.699Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5v95-v8c8-3rh6","url":"https://github.com/advisories/GHSA-5v95-v8c8-3rh6","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:54.377Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0798","url":"https://pkg.go.dev/vuln/GO-2022-0798","licence":"CC-BY-4.0","modified":"2026-03-03T04:52:15.572Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22538","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22538","licence":"Public domain","modified":"2026-06-17T03:37:24.067Z"}],"updatedAt":"2026-11-25T22:58:00.534Z","epss":{"score":0.00718,"percentile":0.55061,"date":"2026-12-01T12:00:22.000Z"}}