6.3medium
Privilege escalation in RBAC system
- Severity
- 6.3medium CVSS:3.1 by Google
- Exploit likelihood
- 0.72% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Also known as
- GHSA-5v95-v8c8-3rh6GO-2022-0798
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Google LLC Exposure Notifications Verification Server | from stable up to 0.23.0 | CVE List |
| github.com/google/exposure-notifications-verification-server (Go) | before 0.23.1 | GitHub Advisory Database, Go Vulnerability Database |
| google exposure_notifications_verification_server | before 0.23.1 | NVD |
All scores
| 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Using 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.
Patches
The issue has been fixed in 0.24.0 and 0.23.1.
Workarounds
For users who are unable to upgrade, we recommend auditing users who have UserWrite permissions and regularly reviewing the Event Log for malicious activity.
Kudos
Thank you to Michael Mazzolini (Ethical Hacker at WHO) for finding and disclosing this vulnerability.
Go Vulnerability Database
Privilege escalation in rbac in github.com/google/exposure-notifications-verification-server
NVD (es)
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. Esto se presenta debido a controles insuficientes sobre el conjunto permitido de permisos. El evento de creación de nuevo usuario se capturaría en el Registro de Eventos.
References
| https://github.com/google/exposure-notifications-verification-server/security/advisories/GHSA-5v95-v8c8-3rh6 | advisory, third-party-advisory, web | |
| https://github.com/google/exposure-notifications-verification-server/commit/eb8cf40b12dbe79304f1133c06fb73419383cd95 | fix, patch, third-party-advisory, web | |
| https://github.com/google/exposure-notifications-verification-server/releases/tag/v0.23.1 | release-notes, third-party-advisory, web | |
| https://github.com/google/exposure-notifications-verification-server/releases/tag/v0.24.0 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-22538 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22538 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5v95-v8c8-3rh6 changed 2026-07-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0798 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2021-22538 changed 2026-06-17 | Public domain |