PT-2022-3561 · Google+1 · Google-Oauth-Java-Client+1

Published

2022-05-03

·

Updated

2025-10-17

·

CVE-2021-22573

CVSS v3.1

8.7

High

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions google-oauth-java-client versions prior to 1.33.3
Description The vulnerability is related to the IDToken verifier not verifying if a token is properly signed. This allows an attacker to provide a compromised token with a custom payload, which will pass validation on the client side. The issue impacts users of the IdTokenVerifier class, where the verify method does not validate the signature before verifying claims. An attacker can modify the payload, such as email or phone number, and the token will still pass validation by the library. However, if the application sends the verified IdToken to another service for authentication, the risk is low because the backend of the service is expected to check the signature and fail the request.
Recommendations Update to version 1.33.3 or higher to resolve the issue. If the library is used indirectly or cannot be updated, consider using similar IdToken verifiers provided by Google that already have signature verification, such as google-auth-library-java or google-api-java-client. As a temporary workaround, consider restricting the use of the IdTokenVerifier class until a patch is available.

Fix

Improper Verification of Cryptographic Signature

Weakness Enumeration

Related Identifiers

BDU:2022-04345
CVE-2021-22573
GHSA-HW42-3568-WJ87
GHSA-XH97-72WW-2W58
OESA-2025-2429
OESA-2025-2430
OESA-2025-2431
OESA-2025-2432
OESA-2025-2433
OESA-2025-2434
SUSE-SU-2024:0806-1

Affected Products

Debian
Google-Oauth-Java-Client