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

CVE-2024-45402: Dena Picotls Use-After-Free Vulnerability

CVE-2024-45402 is a use-after-free vulnerability in Dena Picotls that can lead to arbitrary code execution when parsing spoofed TLS handshake messages. This article covers technical details, affected versions, and mitigations.

Published: April 8, 2026

CVE-2024-45402 Overview

CVE-2024-45402 is a double free vulnerability affecting Picotls, a TLS protocol library that allows users to select different crypto backends based on their use case. When parsing a spoofed TLS handshake message, picotls (specifically, bindings within picotls that call the crypto libraries) may attempt to free the same memory twice. This double free occurs during the disposal of multiple objects without any intervening calls to malloc.

Typically, this triggers the malloc implementation to detect the error and abort the process. However, depending on the internals of malloc and the crypto backend being used, the flaw could potentially lead to a use-after-free scenario, which might allow for arbitrary code execution.

Critical Impact

This vulnerability enables remote attackers to exploit a double free condition in TLS handshake processing, potentially leading to denial of service or arbitrary code execution without requiring authentication or user interaction.

Affected Products

  • Dena Picotls (all versions prior to patch commit 9b88159ce763d680e4a13b6e8f3171ae923a535d)

Discovery Timeline

  • October 11, 2024 - CVE-2024-45402 published to NVD
  • November 12, 2024 - Last updated in NVD database

Technical Details for CVE-2024-45402

Vulnerability Analysis

This vulnerability (CWE-415: Double Free) stems from improper memory management in the picotls library's crypto backend bindings. When processing malformed or spoofed TLS handshake messages, the library may invoke free() on the same memory address twice during the cleanup of cryptographic key exchange contexts.

The double free condition occurs because the key exchange callback function (on_exchange) does not properly clear pointers after freeing associated memory. When an error condition is encountered, the cleanup path attempts to free objects that have already been deallocated, corrupting the heap metadata.

While most modern malloc implementations (such as glibc's ptmalloc) detect double free conditions and terminate the process with an error, certain configurations or alternative allocators may not provide this protection. In such scenarios, the double free could lead to heap corruption, creating conditions for use-after-free exploitation and potentially enabling arbitrary code execution.

Root Cause

The root cause lies in the on_exchange callback implementation within the crypto backend bindings. When the key exchange operation fails validation (for example, when detecting an all-zeros shared secret indicating an incompatible key), the memory allocated for the secret is freed, but the pointer is not set to NULL. If the caller or subsequent error handling code attempts to free this pointer again during cleanup, a double free occurs.

The fix introduces proper pointer nullification after freeing memory and ensures that upon failure, both pubkey and secret structures either remain unchanged or are explicitly zero-cleared, preventing double deallocation.

Attack Vector

An attacker can exploit this vulnerability remotely over the network by sending specially crafted TLS handshake messages to a server or client using the vulnerable picotls library. The attack does not require authentication or user interaction. By crafting malicious key exchange parameters that trigger the failure path in the crypto bindings, an attacker can cause the double free condition.

The following code shows the security patch that addresses the vulnerability:

c
      * When `secret` is non-NULL, this callback derives the shared secret using the private key of the context and the peer key being
      * given, and sets the value in `secret`. The memory pointed to by `secret->base` must be freed by the caller by calling `free`.
      * When `release` is set, the callee frees resources allocated to the context and set *keyex to NULL.
+     * Upon failure (i.e., when an PTLS error code is returned), `*pubkey` and `*secret` either remain unchanged or are zero-cleared.
      */
     int (*on_exchange)(struct st_ptls_key_exchange_context_t **keyex, int release, ptls_iovec_t *secret, ptls_iovec_t peerkey);
 } ptls_key_exchange_context_t;

Source: GitHub Commit

The specific fix in the x25519 crypto backend implementation:

c
     static const uint8_t zeros[X25519_KEY_SIZE] = {0};
     if (ptls_mem_equal(secret->base, zeros, sizeof(zeros))) {
         free(secret->base);
+        secret->base = NULL;
         return PTLS_ERROR_INCOMPATIBLE_KEY;
     }

Source: GitHub Commit

Detection Methods for CVE-2024-45402

Indicators of Compromise

  • Abnormal TLS handshake failures or connection resets with applications using picotls
  • Unexpected process crashes with heap corruption or double free error messages
  • Core dumps indicating malloc-related assertions in applications linked against picotls
  • Unusual patterns of malformed TLS ClientHello or ServerHello messages in network traffic

Detection Strategies

  • Deploy memory safety tools such as AddressSanitizer (ASan) in development and staging environments to detect double free conditions
  • Monitor application logs for PTLS_ERROR_INCOMPATIBLE_KEY errors occurring at unusual rates
  • Implement network-level TLS inspection to identify anomalous handshake patterns indicative of exploitation attempts
  • Use SentinelOne's real-time behavioral analysis to detect heap corruption exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for TLS handshake operations in applications using picotls
  • Monitor for segmentation faults or SIGABRT signals in processes utilizing the picotls library
  • Track network connections that exhibit repeated TLS handshake failures from the same source
  • Configure alerting for unusual process terminations in services dependent on picotls

How to Mitigate CVE-2024-45402

Immediate Actions Required

  • Update picotls to a version containing commit 9b88159ce763d680e4a13b6e8f3171ae923a535d or later
  • Rebuild all applications statically linked against the vulnerable picotls library
  • Review dependent projects (such as H2O web server) for updates addressing this vulnerability
  • Temporarily isolate vulnerable services behind additional network security controls if immediate patching is not possible

Patch Information

The vulnerability is addressed in commit 9b88159ce763d680e4a13b6e8f3171ae923a535d. Organizations should update to a version of picotls that includes this fix. For detailed patch information, refer to the GitHub Security Advisory and the GitHub Commit.

Workarounds

  • If updating is not immediately feasible, consider deploying the application with hardened malloc implementations (such as jemalloc or tcmalloc with additional checks) that may abort more reliably on double free attempts
  • Implement network-level filtering to block malformed TLS handshake messages from untrusted sources
  • Use a Web Application Firewall (WAF) or TLS termination proxy with known-safe TLS implementations in front of vulnerable services
  • Enable process-level sandboxing to limit the impact of potential code execution
bash
# Verify picotls version and rebuild with patched source
git clone https://github.com/h2o/picotls.git
cd picotls
git checkout 9b88159ce763d680e4a13b6e8f3171ae923a535d
git submodule update --init --recursive
cmake -B build
cmake --build build

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechDena Picotls

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.69%

  • 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-415
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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