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-2024-37568

CVE-2024-37568: Authlib Auth Bypass Vulnerability

CVE-2024-37568 is an authentication bypass flaw in Authlib caused by algorithm confusion with asymmetric public keys. This vulnerability allows HMAC verification with any public key. Learn about affected versions and fixes.

Updated: January 22, 2026

CVE-2024-37568 Overview

CVE-2024-37568 is a cryptographic vulnerability affecting lepture Authlib before version 1.3.1. The vulnerability involves algorithm confusion with asymmetric public keys, where HMAC verification is incorrectly allowed with any asymmetric public key when an algorithm is not explicitly specified in a jwt.decode call. This flaw enables attackers to bypass JWT signature verification by exploiting the library's failure to properly validate the signing algorithm.

Critical Impact

Attackers can forge valid JWT tokens by exploiting algorithm confusion, potentially bypassing authentication and authorization mechanisms in applications using vulnerable Authlib versions.

Affected Products

  • Authlib versions prior to 1.3.1
  • Applications using jwt.decode without explicit algorithm specification
  • Python applications relying on Authlib for JWT token validation

Discovery Timeline

  • 2024-06-09 - CVE-2024-37568 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-37568

Vulnerability Analysis

This vulnerability falls under the category of algorithm confusion attacks (CWE-347: Improper Verification of Cryptographic Signature, CWE-284: Improper Access Control). The issue is similar to previously identified vulnerabilities CVE-2022-29217 and CVE-2024-33663, indicating a recurring pattern in JWT library implementations.

The core problem lies in how Authlib handles JWT signature verification when the calling application does not explicitly specify which algorithm should be used for verification. In properly configured systems, JWT tokens signed with asymmetric algorithms (like RS256) should only be verified using the corresponding public key with that same algorithm. However, the vulnerable versions of Authlib allow HMAC-based verification using asymmetric public keys, creating a dangerous attack surface.

Root Cause

The root cause stems from insufficient algorithm validation during the JWT decode process. When jwt.decode is called without an explicit algorithms parameter, the library fails to enforce that the verification algorithm matches the intended signing mechanism. This allows an attacker who possesses the public key (which is often publicly available) to craft a token signed with HMAC using the public key as the secret, which the library will incorrectly accept as valid.

Attack Vector

The attack is network-based and requires no authentication or user interaction to exploit. An attacker with knowledge of the target application's public key can:

  1. Create a malicious JWT payload with arbitrary claims
  2. Set the token's alg header to an HMAC algorithm (e.g., HS256)
  3. Sign the token using the public key as the HMAC secret
  4. Submit the forged token to the vulnerable application
  5. The application's jwt.decode call accepts the token as valid

This attack allows complete bypass of JWT-based authentication when the application uses asymmetric key algorithms but does not enforce algorithm restrictions during verification.

Detection Methods for CVE-2024-37568

Indicators of Compromise

  • JWT tokens received with unexpected algorithm headers (e.g., HS256 when RS256 is expected)
  • Authentication events with tokens containing unusual or elevated privilege claims
  • Spike in authentication requests from unknown sources with valid-appearing tokens
  • Application logs showing JWT decode operations with mismatched algorithm expectations

Detection Strategies

  • Implement logging for JWT verification events, capturing the algorithm used in incoming tokens
  • Monitor for tokens where the alg header differs from the expected signing algorithm configured for your application
  • Deploy static code analysis tools to identify jwt.decode calls missing explicit algorithm parameters
  • Audit authentication systems for unusual successful authentications that bypass normal verification paths

Monitoring Recommendations

  • Configure alerting on authentication anomalies where JWT algorithm headers contain HMAC variants when asymmetric signing is expected
  • Implement centralized logging for all JWT-related security events across affected applications
  • Establish baseline metrics for normal authentication patterns to detect deviations indicative of token forgery

How to Mitigate CVE-2024-37568

Immediate Actions Required

  • Upgrade Authlib to version 1.3.1 or later immediately
  • Audit all jwt.decode calls in your codebase to ensure explicit algorithm specification
  • Review authentication logs for signs of exploitation prior to patching
  • Rotate asymmetric key pairs if there is suspicion of prior exploitation

Patch Information

The vulnerability is addressed in Authlib version 1.3.1. Security advisories have been issued by Fedora and Debian LTS. Additional technical details can be found in the GitHub Issue Discussion and the Vicarius Analysis.

Workarounds

  • Always specify the expected algorithm explicitly when calling jwt.decode to prevent algorithm confusion
  • Implement application-level validation to reject tokens with unexpected algorithm headers before passing to the library
  • Use allowlisting for acceptable JWT algorithms and reject any tokens not matching the expected algorithm type
python
# Secure JWT decode configuration example
from authlib.jose import jwt

# Always explicitly specify the allowed algorithms
# Do NOT allow the token to dictate which algorithm to use
claims = jwt.decode(
    token,
    public_key,
    claims_options={
        "iss": {"essential": True, "value": "expected_issuer"}
    },
    # CRITICAL: Always specify algorithms explicitly
    algorithms=["RS256"]  # Only allow your expected asymmetric algorithm
)

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAuthlib

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347

  • CWE-284
  • Technical References
  • GitHub Issue Discussion

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Vicarius Analysis on CVE-2024-37568

  • Debian LTS Security Announcement
  • Related CVEs
  • CVE-2026-27962: Authlib Auth Bypass Vulnerability

  • CVE-2026-28490: Authlib Auth Bypass Vulnerability

  • CVE-2026-28498: Authlib Auth Bypass Vulnerability

  • CVE-2026-28802: Authlib 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