The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-22573

CVE-2021-22573: Google OAuth Client Library Auth Bypass

CVE-2021-22573 is an authentication bypass flaw in Google OAuth Client Library for Java where IDToken verification fails to validate token signatures. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-22573 Overview

CVE-2021-22573 is a cryptographic vulnerability affecting the Google OAuth Client Library for Java where the IDToken verifier fails to properly verify if a token is legitimately signed. Signature verification is a critical security control that ensures a token's payload originates from a valid provider rather than a malicious actor. This improper verification allows an attacker to supply a compromised token with a custom payload that passes client-side validation, potentially leading to authentication bypass and unauthorized access.

Critical Impact

Attackers can forge authentication tokens that pass validation, enabling unauthorized access to protected resources and identity spoofing across applications using the affected library.

Affected Products

  • Google OAuth Client Library for Java (versions prior to 1.33.3)

Discovery Timeline

  • 2022-05-03 - CVE-2021-22573 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-22573

Vulnerability Analysis

This vulnerability falls under CWE-347 (Improper Verification of Cryptographic Signature), a critical weakness in cryptographic implementations. The Google OAuth Client Library for Java contains a flaw in its IDToken verification process where tokens are accepted without proper cryptographic signature validation.

In OAuth 2.0 and OpenID Connect flows, ID tokens are JSON Web Tokens (JWTs) that contain claims about the authentication of an end-user. These tokens must be cryptographically signed by the identity provider, and clients must verify this signature to ensure the token hasn't been tampered with and genuinely originates from the trusted provider.

The vulnerability allows an attacker positioned in the authentication flow to craft a malicious ID token with arbitrary payload claims. Because the signature verification is not properly performed, the library accepts these forged tokens as legitimate. This enables attackers to impersonate users, escalate privileges, or bypass authentication controls entirely.

Root Cause

The root cause of this vulnerability lies in the improper implementation of the IDToken verification logic within the Google OAuth Client Library. The verification routine fails to validate the cryptographic signature of incoming tokens, accepting tokens regardless of their signature validity. This implementation oversight means that the fundamental trust anchor of JWT-based authentication—the cryptographic signature—is not being enforced.

Attack Vector

The attack vector is network-based and requires an attacker to intercept or inject a crafted ID token into the authentication flow. An attacker with network access can create a malicious JWT with arbitrary claims (such as elevated privileges or spoofed user identity) and present it to an application using the vulnerable library. Since the library does not verify the signature, the forged token passes validation, and the application accepts the attacker's claims as authentic.

The attack scenario involves:

  1. Attacker identifies an application using the vulnerable Google OAuth Client Library
  2. Attacker crafts a malicious ID token with forged claims (user identity, roles, permissions)
  3. The forged token is presented to the application during authentication
  4. The vulnerable library accepts the token without verifying its signature
  5. The application grants access based on the forged claims

Detection Methods for CVE-2021-22573

Indicators of Compromise

  • Unusual authentication patterns with tokens containing unexpected or elevated claims
  • Authentication events from ID tokens with invalid or missing signatures in application logs
  • Multiple successful authentications using tokens that appear structurally malformed
  • Suspicious account access patterns where users appear to authenticate without proper OAuth flows

Detection Strategies

  • Implement logging of ID token validation events and monitor for tokens with invalid signatures
  • Deploy application-level monitoring to track JWT verification outcomes and flag failures
  • Use dependency scanning tools to identify applications using vulnerable versions of google-oauth-client library
  • Review authentication logs for anomalous claim values in accepted tokens

Monitoring Recommendations

  • Enable detailed logging for OAuth authentication flows in all applications using the library
  • Monitor for authentication events that bypass expected validation checkpoints
  • Implement alerting on unusual privilege escalation or identity changes post-authentication
  • Conduct periodic audits of JWT handling code to ensure signature verification is enforced

How to Mitigate CVE-2021-22573

Immediate Actions Required

  • Upgrade the Google OAuth Client Library for Java to version 1.33.3 or later immediately
  • Audit all applications using the library to identify vulnerable deployments
  • Review authentication logs for potential exploitation during the exposure window
  • Implement additional server-side token validation as a defense-in-depth measure

Patch Information

Google has addressed this vulnerability in version 1.33.3 of the OAuth Client Library for Java. The fix ensures proper cryptographic signature verification of ID tokens before accepting them. The patch details and implementation can be reviewed in the GitHub Pull Request #872.

To update the library, modify your dependency configuration:

Maven:

xml
<dependency>
    <groupId>com.google.oauth-client</groupId>
    <artifactId>google-oauth-client</artifactId>
    <version>1.33.3</version>
</dependency>

Gradle:

groovy
implementation 'com.google.oauth-client:google-oauth-client:1.33.3'

Workarounds

  • If immediate upgrade is not possible, implement additional signature verification at the application layer before trusting ID token claims
  • Use a secondary JWT validation library to independently verify token signatures
  • Restrict network access to authentication endpoints to limit attacker opportunity
  • Consider implementing token binding or additional authentication factors as compensating controls
bash
# Verify current library version in Maven projects
mvn dependency:tree | grep google-oauth-client

# Check for vulnerable versions in Gradle projects
gradle dependencies | grep google-oauth-client

# Update to patched version
mvn versions:use-latest-versions -Dincludes=com.google.oauth-client:*

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGoogle Oauth Client Library

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2020-7692: Google OAuth Client Auth Bypass Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English