Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-21632

CVE-2024-21632: Omniauth Microsoft Graph Auth Bypass Flaw

CVE-2024-21632 is an authentication bypass vulnerability in omniauth-microsoft_graph that fails to validate email attributes, enabling account takeover. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2024-21632 Overview

CVE-2024-21632 is a critical authentication bypass vulnerability in the omniauth-microsoft_graph Ruby gem, which provides an OmniAuth strategy for the Microsoft Graph API. Prior to version 2.0.0, the implementation failed to validate the legitimacy of the email attribute returned by Microsoft during the OAuth authentication flow. This lack of validation makes the library susceptible to nOAuth misconfiguration attacks when applications use the email field as a trusted user identifier, potentially leading to complete account takeover.

Critical Impact

Attackers can exploit unvalidated email claims in OAuth responses to impersonate legitimate users and gain unauthorized access to their accounts, leading to complete account takeover scenarios.

Affected Products

  • omniauth-microsoft_graph versions prior to 2.0.0
  • Ruby applications using omniauth-microsoft_graph for Microsoft Graph API authentication
  • Applications relying on unvalidated email claims for user identification

Discovery Timeline

  • 2024-01-02 - CVE-2024-21632 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-21632

Vulnerability Analysis

This vulnerability falls under CWE-287 (Improper Authentication) and represents a significant security flaw in the OAuth authentication flow implementation. The omniauth-microsoft_graph library, prior to version 2.0.0, did not validate whether the email attribute returned by Microsoft during the OAuth flow was legitimate or verified. This is particularly dangerous in environments where Azure AD tenants allow unverified email addresses to be set on user profiles.

The core issue stems from a pattern known as "nOAuth" - a misconfiguration where OAuth identity providers can return user-controlled email values that downstream applications trust implicitly. When an application uses this unvalidated email as the primary identifier for user accounts, an attacker can register with a malicious Azure AD tenant, set their email to match a target user's email, and authenticate to gain access to the victim's account.

Root Cause

The root cause of CVE-2024-21632 is the absence of email verification logic within the OmniAuth strategy implementation. The library passed through the email claim from Microsoft Graph API responses without:

  1. Verifying that the email address is confirmed/validated by Microsoft
  2. Providing documentation or configuration options for applications to implement their own validation
  3. Warning developers about the security implications of trusting unvalidated email claims

This design oversight allowed malicious actors to exploit the trust relationship between the application and the identity provider.

Attack Vector

The attack vector for this vulnerability is network-based and requires no privileges or user interaction. An attacker can exploit this vulnerability through the following attack flow:

  1. The attacker identifies a target application using omniauth-microsoft_graph for authentication
  2. The attacker creates or uses an Azure AD tenant that allows setting arbitrary email addresses
  3. The attacker sets their Azure AD profile email to match a legitimate user's email address in the target application
  4. The attacker authenticates to the target application using their Azure AD credentials
  5. The vulnerable omniauth-microsoft_graph library passes the unvalidated email to the application
  6. The application associates the session with the victim's account based on the spoofed email

For more technical details on the nOAuth attack pattern, see the Descope blog post on nOAuth.

Detection Methods for CVE-2024-21632

Indicators of Compromise

  • Multiple login events from different Azure AD tenant IDs for the same user account
  • Authentication events where the email claim does not match the expected tenant or organization
  • Unusual account access patterns following OAuth authentication
  • Log entries showing email claim mismatches between user profile and authentication response

Detection Strategies

  • Monitor authentication logs for users authenticating from unexpected Azure AD tenants
  • Implement alerting on account access from new OAuth identity providers
  • Audit application dependencies to identify vulnerable versions of omniauth-microsoft_graph (< 2.0.0)
  • Review application code for reliance on unvalidated email claims for user identification

Monitoring Recommendations

  • Enable detailed logging for OAuth authentication flows including tenant ID and email claims
  • Set up alerts for authentication anomalies such as email domain mismatches
  • Monitor for multiple accounts sharing the same email identifier
  • Implement periodic dependency scanning to detect vulnerable gem versions

How to Mitigate CVE-2024-21632

Immediate Actions Required

  • Upgrade omniauth-microsoft_graph to version 2.0.0 or later immediately
  • Audit user accounts for potential unauthorized access or account takeover incidents
  • Review authentication logs for suspicious OAuth authentication patterns
  • Implement additional email verification mechanisms independent of the OAuth flow
  • Consider restricting authentication to known/trusted Azure AD tenants

Patch Information

The vulnerability has been fixed in omniauth-microsoft_graph version 2.0.0. The patch introduces proper validation of the email attribute to prevent nOAuth attacks. The fix is available in the GitHub commit f132078389612b797c872b45bd0e0b47382414c1. For complete details about the vulnerability and remediation, see the GitHub Security Advisory GHSA-5g66-628f-7cvj.

Workarounds

  • Avoid using the email claim as the sole identifier for user accounts
  • Implement server-side validation of email domain against allowed tenant configurations
  • Restrict OAuth authentication to specific, trusted Azure AD tenant IDs
  • Add secondary verification steps before associating OAuth identities with existing accounts
bash
# Update omniauth-microsoft_graph to patched version
bundle update omniauth-microsoft_graph

# Or specify minimum version in Gemfile
# gem 'omniauth-microsoft_graph', '>= 2.0.0'

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOmniauth

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.31%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-287
  • Technical References
  • Descope Blog Post on NoAuth
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-5g66-628f-7cvj
  • Related CVEs
  • CVE-2025-25292: Omniauth SAML Auth Bypass Vulnerability

  • CVE-2025-25291: Omniauth SAML Auth Bypass Vulnerability

  • CVE-2025-25293: Omniauth SAML DoS Vulnerability
Default Legacy - Prefooter | 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