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
    • 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-45159

CVE-2024-45159: Arm Mbed TLS Auth Bypass Vulnerability

CVE-2024-45159 is an authentication bypass flaw in Arm Mbed TLS 3.x that allows attackers to use invalid certificates for TLS 1.3 client authentication. This article covers technical details, affected versions, and fixes.

Published: April 1, 2026

CVE-2024-45159 Overview

CVE-2024-45159 is a certificate validation bypass vulnerability affecting Mbed TLS 3.x versions prior to 3.6.1. The flaw occurs within TLS 1.3 implementations when a server enables optional client authentication. When a client presents a certificate that lacks appropriate values in the keyUsage or extKeyUsage extensions, the mbedtls_ssl_get_verify_result() function incorrectly clears the MBEDTLS_X509_BADCERT_KEY_USAGE and MBEDTLS_X509_BADCERT_KEY_USAGE error bits. This improper certificate validation allows an attacker to leverage certificates intended for other purposes (such as code signing or email encryption) for TLS client authentication.

Critical Impact

An attacker with a certificate valid for non-TLS purposes can bypass authentication controls and successfully authenticate as a client to affected TLS 1.3 servers, potentially gaining unauthorized access to protected resources.

Affected Products

  • Arm Mbed TLS 3.x versions before 3.6.1

Discovery Timeline

  • 2024-09-05 - CVE-2024-45159 published to NVD
  • 2025-03-13 - Last updated in NVD database

Technical Details for CVE-2024-45159

Vulnerability Analysis

This vulnerability stems from improper certificate validation logic within the Mbed TLS library's TLS 1.3 implementation. The core issue lies in how the library evaluates X.509 certificate extensions during the client authentication process. X.509 certificates contain keyUsage and extKeyUsage extensions that specify the intended purposes for which the certificate can be used—such as digital signature, key encipherment, client authentication, or code signing.

When a TLS 1.3 server performs optional client authentication and receives a client certificate, it should verify that the certificate explicitly permits TLS client authentication. However, due to a bug in mbedtls_ssl_get_verify_result(), even when a certificate lacks proper key usage values for TLS client authentication, the function incorrectly reports that no key usage violations occurred. This creates a situation where the server accepts certificates that should be rejected.

The vulnerability specifically affects servers configured with optional client authentication. When required authentication is enabled, the handshake properly fails with a fatal alert upon encountering invalid certificates. This behavioral difference indicates the bug exists specifically in the optional authentication code path.

Root Cause

The root cause is an improper certificate validation flaw (CWE-295) in the return value handling of mbedtls_ssl_get_verify_result(). The function fails to properly set the MBEDTLS_X509_BADCERT_KEY_USAGE error flags when certificate extensions do not meet TLS client authentication requirements under the optional authentication configuration. This represents an incorrect status bit clearing operation that masks legitimate validation failures from the calling application.

Attack Vector

The attack requires network access to a vulnerable TLS 1.3 server configured with optional client authentication. An attacker who possesses any valid X.509 certificate—even one explicitly intended for purposes other than TLS client authentication—can present this certificate during the TLS handshake. The vulnerable server will incorrectly accept this certificate as valid for client authentication, allowing the attacker to establish an authenticated session.

The exploitation scenario involves:

  1. The attacker obtains a valid X.509 certificate with proper signatures but improper keyUsage or extKeyUsage values for TLS client authentication (e.g., a code signing certificate or S/MIME certificate)
  2. The attacker initiates a TLS 1.3 connection to a vulnerable Mbed TLS server with optional client authentication enabled
  3. When prompted for client authentication, the attacker presents their certificate
  4. The server's mbedtls_ssl_get_verify_result() incorrectly clears the key usage error bits
  5. The server accepts the certificate, granting the attacker authenticated access

This attack does not require user interaction and can be executed remotely against any exposed vulnerable server.

Detection Methods for CVE-2024-45159

Indicators of Compromise

  • Successful TLS 1.3 client authentications from clients presenting certificates with non-TLS authentication key usage extensions
  • Certificate validation logs showing accepted certificates with keyUsage values inconsistent with client authentication
  • Unexpected client certificate subjects or issuers appearing in server authentication logs
  • Anomalous access patterns from previously unknown client certificates

Detection Strategies

  • Audit TLS handshake logs for client certificates that lack clientAuth in their extKeyUsage extension
  • Implement secondary certificate validation checks at the application layer to verify key usage extensions
  • Monitor for authentication events involving certificates with unusual or unexpected purposes
  • Compare accepted client certificates against a whitelist of known-good certificates

Monitoring Recommendations

  • Enable verbose TLS handshake logging to capture full certificate chain details during client authentication
  • Implement alerting on client authentication from certificates not previously registered in your certificate inventory
  • Review Mbed TLS version deployments across your infrastructure to identify vulnerable installations
  • Correlate authentication events with application access logs to detect potential unauthorized access

How to Mitigate CVE-2024-45159

Immediate Actions Required

  • Upgrade Mbed TLS to version 3.6.1 or later immediately on all affected systems
  • If immediate patching is not possible, consider temporarily switching to required client authentication mode instead of optional
  • Audit systems for any signs of unauthorized client certificate authentication
  • Review all accepted client certificates for proper keyUsage and extKeyUsage values

Patch Information

Arm has released Mbed TLS version 3.6.1 which addresses this vulnerability. The update corrects the certificate validation logic in mbedtls_ssl_get_verify_result() to properly report key usage violations when certificates lack appropriate TLS client authentication extensions. Organizations should obtain the patched version from the GitHub MbedTLS Releases page. Additional details about this vulnerability are available in the MbedTLS Security Advisory 2024-08-3.

Workarounds

  • Configure TLS 1.3 servers to use required client authentication instead of optional authentication, which causes the handshake to properly fail with a fatal alert upon invalid certificates
  • Implement application-level certificate validation that independently verifies keyUsage and extKeyUsage extensions after the TLS handshake
  • Restrict client certificate issuers to a limited set of trusted certificate authorities with strict issuance policies for TLS client authentication certificates
  • Consider temporarily disabling client authentication entirely if it is not operationally critical until patching is completed

Administrators should verify Mbed TLS version and authentication configuration:

bash
# Check installed Mbed TLS version
mbedtls_version

# Review TLS configuration for optional client authentication settings
grep -r "MBEDTLS_SSL_VERIFY_OPTIONAL" /etc/mbedtls/ /usr/local/etc/mbedtls/

# Verify upgrade to patched version
dpkg -l | grep mbedtls
# Or for source builds, check the version header
grep "MBEDTLS_VERSION_STRING" /usr/local/include/mbedtls/build_info.h

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechArm Mbed Tls

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.57%

  • 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-295
  • Technical References
  • GitHub MbedTLS Releases

  • MbedTLS Security Advisories
  • Vendor Resources
  • MbedTLS Security Advisory 2024-08-3
  • Related CVEs
  • CVE-2025-52497: Arm Mbed TLS Buffer Overflow Vulnerability

  • CVE-2025-52496: Arm Mbed TLS Race Condition Vulnerability

  • CVE-2025-48965: Arm Mbed TLS Use-After-Free Vulnerability

  • CVE-2025-47917: Arm Mbed TLS Use-After-Free 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