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-38371

CVE-2024-38371: Goauthentik Auth Bypass Vulnerability

CVE-2024-38371 is an authentication bypass flaw in Goauthentik Authentik affecting OAuth2 Device code flow that allows unauthorized access. This article covers technical details, affected versions, and patches.

Published: April 15, 2026

CVE-2024-38371 Overview

CVE-2024-38371 is an authorization bypass vulnerability in authentik, an open-source Identity Provider. The vulnerability exists in the OAuth2 Device code flow implementation, where access restrictions assigned to an application are not properly checked. This flaw could potentially allow users without the correct authorization to obtain OAuth tokens for an application and gain unauthorized access to protected resources.

Critical Impact

Unauthorized users can bypass application access restrictions and obtain valid OAuth tokens, potentially compromising application security and user data across the identity provider infrastructure.

Affected Products

  • goauthentik authentik versions prior to 2024.6.0
  • goauthentik authentik versions prior to 2024.4.3
  • goauthentik authentik versions prior to 2024.2.4

Discovery Timeline

  • June 28, 2024 - CVE CVE-2024-38371 published to NVD
  • August 21, 2025 - Last updated in NVD database

Technical Details for CVE-2024-38371

Vulnerability Analysis

This vulnerability falls under CWE-284 (Improper Access Control), representing a fundamental failure in the authorization verification process within authentik's OAuth2 Device code flow implementation. The OAuth2 Device Authorization Grant flow is typically used by devices with limited input capabilities (such as smart TVs or IoT devices) to obtain access tokens. During this flow, the user authenticates through a separate browser session while the device polls for the resulting token.

The critical flaw lies in the fact that authentik failed to verify whether the authenticating user actually had the proper permissions to access the target application before issuing OAuth tokens. This means that even if administrators had configured specific access restrictions on an application (such as group membership requirements or policy-based access controls), these restrictions were not enforced during the device code flow.

An attacker could exploit this vulnerability to gain access to applications they should not have permission to use, potentially leading to unauthorized data access, privilege escalation within connected systems, or lateral movement across the organization's OAuth-protected resources.

Root Cause

The root cause of CVE-2024-38371 is improper access control validation in the OAuth2 Device code flow. When processing device code authorization requests, the authentik application failed to evaluate the application-specific access restrictions that were configured by administrators. The authorization logic that normally enforces user-to-application access policies was not applied to this particular authentication flow, creating a gap in the security model.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker with valid credentials to the authentik instance could initiate an OAuth2 Device code flow targeting any application configured within the identity provider, regardless of whether they have explicit access permissions to that application.

The attack flow would involve:

  1. Initiating a device code flow request targeting a restricted application
  2. Completing the authentication process with valid user credentials
  3. Receiving OAuth tokens for the target application despite lacking proper authorization
  4. Using the obtained tokens to access the protected application resources

The vulnerability is particularly concerning because it undermines the entire access control model that organizations rely on to segment application access based on user roles, groups, or policies.

Detection Methods for CVE-2024-38371

Indicators of Compromise

  • Unexpected OAuth token grants for applications where the user should not have access based on configured policies
  • Device code flow authentication events from users not authorized for specific applications
  • Anomalous access patterns showing users accessing applications outside their normal permission scope
  • Log entries indicating successful device code flow completions followed by application access that bypasses normal authorization checks

Detection Strategies

  • Review authentik audit logs for device code flow authentication events and correlate with application access permissions
  • Monitor for OAuth token issuance patterns where the requesting user lacks application-level permissions
  • Implement alerting on successful device code flow completions for sensitive applications with restricted access
  • Compare authorized user lists for applications against actual token grants through the device code flow

Monitoring Recommendations

  • Enable comprehensive logging for all OAuth2 flows within authentik, particularly the device code flow
  • Set up monitoring dashboards to track authentication flow types and correlate with expected user-application mappings
  • Implement real-time alerting for access to high-value applications through device code flows
  • Regularly audit OAuth token grants against configured access policies to identify potential exploitation

How to Mitigate CVE-2024-38371

Immediate Actions Required

  • Upgrade authentik to patched versions 2024.6.0, 2024.4.3, or 2024.2.4 immediately
  • Audit recent device code flow authentications to identify any potential unauthorized access
  • Review OAuth tokens issued through device code flows for applications with access restrictions
  • Consider revoking and re-issuing tokens for sensitive applications that may have been compromised

Patch Information

The goauthentik team has released security patches addressing this vulnerability. Organizations should upgrade to one of the following patched versions based on their current deployment:

  • Version 2024.6.0 - Latest release with the fix
  • Version 2024.4.3 - Patch for 2024.4.x branch
  • Version 2024.2.4 - Patch for 2024.2.x branch

For complete details on the vulnerability and remediation, refer to the GitHub Security Advisory GHSA-jq3m-37m7-gp45.

Workarounds

  • If immediate patching is not possible, consider temporarily disabling the OAuth2 Device code flow for sensitive applications until the upgrade can be completed
  • Implement additional network-level access controls to limit who can initiate device code flows
  • Enable enhanced monitoring and alerting on all device code flow authentications as an interim measure
  • Review and restrict which applications support the device code flow to only those that absolutely require it
bash
# Verify authentik version after upgrade
docker exec -it authentik-server ak version
# Or for Kubernetes deployments
kubectl exec -it deployment/authentik-server -- ak version
# Expected output should show 2024.6.0, 2024.4.3, or 2024.2.4 or later

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGoauthentik

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.73%

  • 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-284
  • Technical References
  • GitHub Release Version 2024.2.4

  • GitHub Release Version 2024.4.3

  • GitHub Release Version 2024.6.0
  • Vendor Resources
  • GitHub Security Advisory GHSA-jq3m-37m7-gp45
  • Related CVEs
  • CVE-2024-47070: Goauthentik Auth Bypass Vulnerability

  • CVE-2025-52553: Authentik Auth Bypass Vulnerability

  • CVE-2025-53942: Goauthentik Auth Bypass 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