banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2021-22901

CVE-2021-22901: Haxx Curl Use-After-Free Vulnerability

CVE-2021-22901 is a use-after-free vulnerability in Haxx Curl that could allow remote code execution via TLS 1.3 session tickets. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2021-22901 Overview

CVE-2021-22901 is a use-after-free vulnerability affecting curl versions 7.75.0 through 7.76.1. The flaw exists in how libcurl handles TLS 1.3 session tickets when using OpenSSL. When a TLS 1.3 session ticket arrives over a connection that has been reused by multiple transfers, the library may access memory that has already been freed. This occurs because libcurl stores pointers to transfer in-memory objects for later retrieval when session tickets arrive, but these objects may be freed before the new session is established on a multiplexed or reused connection.

A malicious server could potentially exploit this vulnerability under rare circumstances to achieve remote code execution in the client application. The vulnerability is particularly concerning because libcurl might call a function pointer stored in the freed object, enabling arbitrary code execution if an attacker can control the memory contents at the freed location.

Critical Impact

Remote code execution possible on client systems when connecting to malicious TLS 1.3 servers via curl/libcurl with OpenSSL backend on reused or multiplexed connections.

Affected Products

  • Haxx curl 7.75.0 through 7.76.1
  • Oracle Communications Cloud Native Core (multiple components including Binding Support Function, Network Repository Function, Service Communication Proxy)
  • Oracle MySQL Server
  • Oracle Essbase
  • NetApp Active IQ Unified Manager, Cloud Backup, OnCommand Insight, SnapCenter
  • NetApp HCI and SolidFire hardware/firmware components
  • Siemens SINEC Infrastructure Network Services
  • Splunk Universal Forwarder

Discovery Timeline

  • 2021-06-11 - CVE-2021-22901 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-22901

Vulnerability Analysis

This vulnerability represents a classic use-after-free memory corruption issue within libcurl's TLS session handling code. The flaw manifests when libcurl configures TLS 1.3 session ticket support using the OpenSSL backend. During this process, libcurl stores pointers to the current transfer's in-memory data structure for later use when session tickets arrive from the server.

The vulnerability is triggered in scenarios involving connection reuse—specifically with HTTP/1.1 connection reuse or HTTP/2 multiplexing. In these configurations, multiple transfers may share the same underlying TLS connection. If the first transfer object is freed while the connection remains active and a subsequent session ticket arrives, the callback function attempts to access the now-freed memory. This can lead to information disclosure, application crashes, or in worst-case scenarios where an attacker controls the freed memory contents, remote code execution.

Root Cause

The root cause lies in improper lifecycle management of transfer-to-connection associations in libcurl's OpenSSL integration layer. When a transfer completes and its associated Curl_easy data structure is freed, the connection's reference to this structure was not being properly invalidated. The OpenSSL session ticket callback retained a stale pointer to the freed transfer object.

The fix introduces proper detachment logic via Curl_ssl_detach_conn() that ensures SSL-specific state is cleaned up when a transfer is detached from a connection, preventing the callback from accessing freed memory.

Attack Vector

Exploitation requires a network-based attack where a malicious TLS 1.3 server sends specially crafted session tickets. The attack scenario involves:

  1. A client application using vulnerable curl/libcurl connects to an attacker-controlled server
  2. The connection is reused or multiplexed across multiple transfers
  3. The initial transfer completes and its memory is freed
  4. The attacker's server sends a TLS 1.3 session ticket
  5. libcurl's callback accesses the freed memory, potentially executing attacker-controlled code

The following patch from the official curl repository demonstrates the fix applied to lib/multi.c:

c
 void Curl_detach_connnection(struct Curl_easy *data)
 {
   struct connectdata *conn = data->conn;
-  if(conn)
+  if(conn) {
     Curl_llist_remove(&conn->easyq, &data->conn_queue, NULL);
+    Curl_ssl_detach_conn(data, conn);
+  }
   data->conn = NULL;
 }

Source: GitHub curl Commit 7f4a9a9

The corresponding changes to SSL backend implementations add new callback hooks for proper association/disassociation:

c
   Curl_none_set_engine_default,   /* set_engine_default */
   Curl_none_engines_list,         /* engines_list */
   Curl_none_false_start,          /* false_start */
-  NULL                            /* sha256sum */
+  NULL,                           /* sha256sum */
+  NULL,                           /* associate_connection */
+  NULL                            /* disassociate_connection */
 };

Source: GitHub curl Commit 7f4a9a9

Detection Methods for CVE-2021-22901

Indicators of Compromise

  • Unexpected crashes in applications using libcurl when connecting to external TLS 1.3 servers
  • Memory corruption errors or segmentation faults in curl-based processes after TLS session establishment
  • Suspicious outbound connections to unknown TLS 1.3 endpoints from affected systems

Detection Strategies

  • Monitor for crashes in curl-dependent processes with stack traces involving Curl_ssl or OpenSSL session callback functions
  • Inventory all systems running curl versions 7.75.0 through 7.76.1 with OpenSSL TLS backend
  • Deploy memory safety monitoring tools (AddressSanitizer, Valgrind) in development and testing environments to detect use-after-free conditions
  • Review application logs for TLS handshake failures or unexpected session ticket processing events

Monitoring Recommendations

  • Implement network monitoring for unusual TLS 1.3 session ticket patterns from external servers
  • Deploy endpoint detection rules for memory corruption exploitation attempts in curl processes
  • Establish baseline network behavior for curl-based applications to identify anomalous TLS connection patterns
  • Configure SentinelOne Singularity platform to monitor for exploitation attempts targeting memory corruption vulnerabilities in network utilities

How to Mitigate CVE-2021-22901

Immediate Actions Required

  • Upgrade curl to version 7.77.0 or later immediately across all affected systems
  • Audit all applications and services that bundle or depend on libcurl versions 7.75.0-7.76.1
  • If immediate patching is not possible, consider disabling TLS 1.3 session tickets as a temporary workaround
  • Review Oracle, NetApp, Siemens, and Splunk security advisories for vendor-specific patch guidance

Patch Information

The vulnerability has been addressed in curl version 7.77.0 and later. The fix implements proper detachment of transfer objects from SSL connections, ensuring session ticket callbacks do not access freed memory. Organizations should reference the following vendor resources for specific patch information:

  • Official curl CVE-2021-22901 Documentation
  • Oracle July 2021 Security Alerts
  • Oracle January 2022 Security Alerts
  • Oracle April 2022 Security Alerts
  • NetApp Security Advisory NTAP-20210723-0001
  • Siemens Security Advisory SSA-389290

Workarounds

  • Disable TLS 1.3 session ticket support by setting CURLOPT_SSL_OPTIONS with CURLSSLOPT_NO_SESSIONID_CACHE where applicable
  • Avoid connection reuse in critical applications by setting CURLOPT_FRESH_CONNECT and CURLOPT_FORBID_REUSE options
  • Limit connections to trusted TLS servers only until patching is complete
  • Consider using curl with alternative TLS backends (e.g., GnuTLS, NSS) that are not affected by this specific vulnerability
bash
# Verify installed curl version
curl --version

# Check if curl is compiled with OpenSSL (affected backend)
curl --version | grep -i openssl

# Upgrade curl on Debian/Ubuntu systems
sudo apt-get update && sudo apt-get install --only-upgrade curl libcurl4

# Upgrade curl on RHEL/CentOS systems
sudo yum update curl libcurl

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/TechHaxx Curl

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.34%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Siemens Security Advisory SSA-732250

  • HackerOne Report #1180380

  • NetApp Security Advisory NTAP-20210723-0001

  • NetApp Security Advisory NTAP-20210727-0007
  • Vendor Resources
  • Siemens Security Advisory SSA-389290

  • CVE-2021-22901 Documentation

  • GitHub curl Commit 7f4a9a9

  • Oracle July 2021 Security Alerts

  • Oracle April 2022 Security Alerts

  • Oracle January 2022 Security Alerts
  • Related CVEs
  • CVE-2022-32221: Haxx Curl Use-After-Free Vulnerability

  • CVE-2025-0665: Haxx Curl Use-After-Free Vulnerability

  • CVE-2023-28319: Haxx Curl Use After Free Vulnerability

  • CVE-2022-43552: Haxx Curl Use After Free Vulnerability
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
  • English
  • 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