CVE-2021-22538
JSON

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
Google
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 packageVersionsReported by
Google LLC Exposure Notifications Verification Serverfrom stable up to 0.23.0CVE List
github.com/google/exposure-notifications-verification-server (Go)before 0.23.1GitHub Advisory Database, Go Vulnerability Database
google exposure_notifications_verification_serverbefore 0.23.1NVD

All scores

Google6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-22538 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-5v95-v8c8-3rh6 changed 2026-07-08CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0798 changed 2026-03-03CC-BY-4.0
NVDCVE-2021-22538 changed 2026-06-17Public domain