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-2021-22897

CVE-2021-22897: Haxx Curl Information Disclosure Flaw

CVE-2021-22897 is an information disclosure vulnerability in Haxx Curl affecting versions 7.61.0 through 7.76.1. This flaw exposes data to wrong sessions through cipher list mishandling, weakening transport security significantly.

Published: February 25, 2026

CVE-2021-22897 Overview

CVE-2021-22897 is a vulnerability in curl versions 7.61.0 through 7.76.1 that results in exposure of data elements to the wrong session due to improper handling of CURLOPT_SSL_CIPHER_LIST when libcurl is built to use the Schannel TLS library. The selected cipher set was stored in a single "static" variable in the library, which causes an unintended side-effect where multiple concurrent transfers share cipher configurations. The last transfer that sets the ciphers will accidentally control the set used by all transfers, potentially weakening transport security significantly.

Critical Impact

In multi-threaded applications using concurrent HTTPS connections, one connection's cipher preferences can inadvertently override another's, potentially exposing sensitive data through weaker-than-intended encryption settings.

Affected Products

  • haxx curl (versions 7.61.0 through 7.76.1)
  • Oracle Communications Cloud Native Core products (Binding Support Function 1.11.0, Network Function Cloud Native Environment 1.10.0, Network Repository Function 1.15.0/1.15.1, Network Slice Selection Function 1.8.0, Service Communication Proxy 1.15.0)
  • Oracle MySQL Server and Essbase
  • NetApp Cloud Backup, SolidFire, and HCI products
  • Siemens SINEC Infrastructure Network Services
  • Splunk Universal Forwarder

Discovery Timeline

  • June 11, 2021 - CVE-2021-22897 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-22897

Vulnerability Analysis

This vulnerability is classified under CWE-840 (Business Logic Errors) and CWE-668 (Exposure of Resource to Wrong Sphere). The flaw exists in the Schannel TLS backend implementation within libcurl, specifically in the set_ssl_ciphers() function located in lib/vtls/schannel.c. The function incorrectly uses a static array algIds[45] to store cipher algorithm identifiers, which means the variable persists across function calls and is shared between all concurrent TLS connections.

When multiple curl connections are established simultaneously in a multi-threaded application, each attempting to configure its own cipher suite via CURLOPT_SSL_CIPHER_LIST, the static nature of the storage causes a race condition. The last connection to configure its ciphers effectively overwrites the cipher settings for all other concurrent connections, including those that may have already initiated their TLS handshake.

Root Cause

The root cause is the use of a static array variable (static ALG_ID algIds[45]) within the set_ssl_ciphers() function. Static variables in C retain their values between function calls and are shared across all threads within a process. This design decision, likely made for convenience or to avoid repeated memory allocation, created a thread-safety issue where concurrent TLS connections could interfere with each other's cipher configurations.

Attack Vector

The vulnerability can be exploited in scenarios where:

  1. An application uses libcurl with the Schannel TLS backend (Windows systems)
  2. The application establishes multiple concurrent HTTPS connections
  3. Different connections attempt to use different cipher suite configurations via CURLOPT_SSL_CIPHER_LIST

An attacker positioned as a man-in-the-middle could potentially exploit this by timing their malicious connection to set weaker ciphers, which would then be applied to legitimate connections. This could facilitate cryptographic attacks against the weakened TLS sessions. The attack is network-based and requires no authentication or user interaction.

c
// Security patch in lib/vtls/schannel.c - schannel: don't use static to store selected ciphers
 }
 
 static CURLcode
-set_ssl_ciphers(SCHANNEL_CRED *schannel_cred, char *ciphers)
+set_ssl_ciphers(SCHANNEL_CRED *schannel_cred, char *ciphers,
+                int *algIds)
 {
   char *startCur = ciphers;
   int algCount = 0;
-  static ALG_ID algIds[45]; /*There are 45 listed in the MS headers*/
-  while(startCur && (0 != *startCur) && (algCount < 45)) {
+  while(startCur && (0 != *startCur) && (algCount < NUMOF_CIPHERS)) {
     long alg = strtol(startCur, 0, 0);
     if(!alg)
       alg = get_alg_id_by_name(startCur);

Source: GitHub curl Commit

c
// Security patch in lib/vtls/schannel.h - schannel: don't use static to store selected ciphers
 #endif
 #endif
 
+#define NUMOF_CIPHERS 45 /* There are 45 listed in the MS headers */
+
 struct Curl_schannel_cred {
   CredHandle cred_handle;
   TimeStamp time_stamp;

Source: GitHub curl Commit

Detection Methods for CVE-2021-22897

Indicators of Compromise

  • Unexpected cipher suite changes in TLS handshake logs when using concurrent curl connections
  • Detection of weaker-than-configured cipher suites in network traffic analysis
  • Application logs showing inconsistent TLS connection parameters across concurrent requests
  • Anomalous TLS negotiation behavior on Windows systems using Schannel

Detection Strategies

  • Monitor for curl library versions between 7.61.0 and 7.76.1 in software inventory systems
  • Implement network monitoring to detect TLS connections using unexpectedly weak cipher suites
  • Review application logs for multi-threaded curl usage patterns with CURLOPT_SSL_CIPHER_LIST configurations
  • Deploy endpoint detection to identify vulnerable curl/libcurl binaries linked against Schannel

Monitoring Recommendations

  • Enable verbose TLS logging in applications using libcurl to track cipher suite negotiations
  • Configure network intrusion detection systems (NIDS) to alert on weak cipher usage patterns
  • Implement software composition analysis (SCA) to track curl library versions across the environment
  • Monitor for security advisory updates from curl, Oracle, NetApp, Siemens, and Splunk

How to Mitigate CVE-2021-22897

Immediate Actions Required

  • Upgrade curl to version 7.77.0 or later, which contains the fix for this vulnerability
  • Review all applications using libcurl on Windows with Schannel TLS backend
  • Audit concurrent connection patterns in applications using CURLOPT_SSL_CIPHER_LIST
  • Apply vendor-specific patches from Oracle, NetApp, Siemens, and Splunk for affected products

Patch Information

The vulnerability was fixed in curl version 7.77.0 through commit bbb71507b7bab52002f9b1e0880bed6a32834511. The fix removes the static storage for the cipher algorithm IDs and instead passes the array as a parameter to the set_ssl_ciphers() function, ensuring each connection maintains its own cipher configuration. Organizations should update to curl 7.77.0 or later and apply relevant vendor patches:

  • curl Security Advisory CVE-2021-22897
  • Oracle CPU July 2021
  • Oracle CPU January 2022
  • Oracle CPU April 2022
  • NetApp Security Advisory NTAP-20210727-0007
  • Siemens Security Advisory SSA-389290

Workarounds

  • Avoid using CURLOPT_SSL_CIPHER_LIST option in multi-threaded applications until patched
  • Consider using OpenSSL or other TLS backends instead of Schannel on Windows systems
  • Implement connection serialization to prevent concurrent cipher configuration changes
  • Use system-wide TLS cipher policies rather than per-connection configurations
bash
# Configuration example - Verify curl version and TLS backend
curl --version | grep -E "(curl|SSL)"

# Check for Schannel backend usage
curl --version | grep -i schannel

# Update curl to patched version (example for package managers)
# macOS with Homebrew
brew update && brew upgrade curl

# Ubuntu/Debian
sudo apt-get update && sudo apt-get install curl

# CentOS/RHEL
sudo yum update curl

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechHaxx Curl

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.83%

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

  • CWE-668
  • Technical References
  • HackerOne Report #1172857

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

  • curl CVE-2021-22897 Details

  • GitHub curl Commit Update

  • Oracle CPU July 2021 Alert

  • Oracle CPU April 2022 Alert

  • Oracle CPU January 2022 Alert
  • Related CVEs
  • CVE-2026-3783: Haxx Curl Information Disclosure Vulnerability

  • CVE-2023-46219: Haxx Curl Information Disclosure Flaw

  • CVE-2024-11053: Haxx Curl Information Disclosure Flaw

  • CVE-2024-2398: Haxx Curl Information Disclosure Flaw
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