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-2022-32221

CVE-2022-32221: Haxx Curl Use-After-Free Vulnerability

CVE-2022-32221 is a use-after-free vulnerability in Haxx Curl's libcurl that occurs when reusing handles from PUT to POST requests. This flaw can cause memory corruption. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 17, 2026

CVE-2022-32221 Overview

CVE-2022-32221 is a critical vulnerability in libcurl affecting HTTP(S) transfers where the library may erroneously use the read callback (CURLOPT_READFUNCTION) to request data to send, even when the CURLOPT_POSTFIELDS option has been set. This condition occurs when the same handle was previously used to issue a PUT request that utilized that callback. The flaw can cause applications to misbehave, potentially sending incorrect data or triggering use-after-free conditions in subsequent POST requests.

Critical Impact

This vulnerability can lead to information disclosure, use-after-free memory corruption, and potential remote code execution through malformed HTTP request handling when reusing curl handles across PUT and POST operations.

Affected Products

  • Haxx curl (versions prior to the security fix)
  • NetApp Clustered Data ONTAP
  • NetApp H300S, H500S, H700S, H410S Firmware
  • Debian Linux 10.0 and 11.0
  • Apple macOS
  • Splunk Universal Forwarder

Discovery Timeline

  • 2022-12-05 - CVE-2022-32221 published to NVD
  • 2026-02-13 - Last updated in NVD database

Technical Details for CVE-2022-32221

Vulnerability Analysis

The vulnerability exists in the handle reuse logic within libcurl when transitioning between HTTP methods. When an application reuses a curl handle that was previously configured for a PUT request with a custom read callback (CURLOPT_READFUNCTION), and then reconfigures it for a POST request using CURLOPT_POSTFIELDS, libcurl may incorrectly continue to invoke the previously registered read callback instead of using the statically provided POST data.

This creates a dangerous state where the application's read callback function may be invoked unexpectedly, potentially accessing memory that has already been freed or returning unintended data. The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and CWE-668 (Exposure of Resource to Wrong Sphere), reflecting its potential for both information disclosure and improper resource handling.

Root Cause

The root cause lies in improper state management when transitioning a reused curl handle from a PUT request to a POST request. The internal state tracking for the data source mechanism fails to properly reset or override the read callback configuration when CURLOPT_POSTFIELDS is set on a handle that previously used CURLOPT_READFUNCTION. This results in the library maintaining stale callback references that should have been cleared during the method transition.

Attack Vector

The attack vector is network-based and can be exploited without user interaction or authentication. An attacker could potentially exploit this vulnerability in scenarios where:

  1. An application reuses curl handles for multiple HTTP operations (a common performance optimization)
  2. The application performs PUT requests followed by POST requests on the same handle
  3. The application uses custom read callbacks for PUT operations

The vulnerability manifests when the callback mechanism reads from freed memory regions or when sensitive data from unrelated memory regions is inadvertently included in HTTP requests. This could result in information leakage to remote servers or corruption of memory leading to arbitrary code execution.

The technical details of the exploitation are documented in the HackerOne Security Report #1704017, which provides the original vulnerability disclosure information.

Detection Methods for CVE-2022-32221

Indicators of Compromise

  • Unexpected memory access patterns in applications using libcurl with handle reuse
  • Anomalous HTTP POST request payloads that differ from expected application data
  • Application crashes or segmentation faults during HTTP operations following PUT-to-POST handle transitions
  • Memory corruption indicators in curl-dependent processes

Detection Strategies

  • Monitor for curl library versions prior to the patched release across infrastructure
  • Implement application-level logging to track curl handle reuse patterns and HTTP method transitions
  • Deploy memory corruption detection tools (AddressSanitizer, Valgrind) in development and testing environments
  • Analyze outbound HTTP traffic for unexpected or malformed POST request bodies

Monitoring Recommendations

  • Enable verbose logging in applications using libcurl to capture handle lifecycle events
  • Implement network traffic analysis to detect anomalous data patterns in HTTP requests
  • Monitor system logs for segmentation faults or memory errors in processes using curl
  • Use endpoint detection and response (EDR) solutions to identify exploitation attempts

How to Mitigate CVE-2022-32221

Immediate Actions Required

  • Update libcurl to the latest patched version immediately across all systems
  • Identify all applications and systems using affected curl versions
  • Review application code for curl handle reuse patterns, particularly PUT-to-POST transitions
  • Consider isolating systems running vulnerable versions until patches can be applied

Patch Information

Security patches have been released by multiple vendors. Organizations should apply the appropriate updates:

  • Debian: Apply updates from Debian Security Advisory DSA-5330 and Debian LTS Security Announcement
  • Gentoo: Apply Gentoo GLSA 2022-12-01
  • NetApp: Refer to NetApp Security Advisory NTAP-20230110-0006 and NTAP-20230208-0002
  • Apple macOS: Apply updates from Apple Support HT213604 and HT213605

Workarounds

  • Avoid reusing curl handles between PUT and POST operations until patching is complete
  • Create new curl handles for each HTTP request as a temporary mitigation
  • Explicitly reset all options on curl handles before reuse using curl_easy_reset()
  • Implement application-level validation of POST data before transmission
bash
# Check curl version on Linux systems
curl --version

# Update curl on Debian/Ubuntu systems
sudo apt-get update && sudo apt-get upgrade curl libcurl4

# Update 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

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.82%

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

  • CWE-668
  • Technical References
  • Full Disclosure Archive - Jan 19, 2023

  • Full Disclosure Archive - Jan 20, 2023

  • Openwall OSS Security Discussion - May 17, 2023

  • HackerOne Security Report #1704017

  • Debian LTS Security Announcement - Jan 2023

  • Gentoo GLSA 2022-12-01

  • NetApp Security Advisory - NTAP-20230110-0006

  • NetApp Security Advisory - NTAP-20230208-0002

  • Apple Support Update - HT213604

  • Apple Support Update - HT213605

  • Debian Security Advisory - DSA-5330
  • Related CVEs
  • 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

  • CVE-2021-22901: 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