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

CVE-2021-22922: Haxx Curl Information Disclosure Flaw

CVE-2021-22922 is an information disclosure vulnerability in Haxx Curl's metalink feature that fails to properly handle hash mismatches, potentially keeping malicious content on disk. This article covers technical details.

Published: February 25, 2026

CVE-2021-22922 Overview

CVE-2021-22922 is a vulnerability in curl's metalink download feature that fails to properly handle hash verification failures. When curl downloads content using metalink, it verifies the downloaded contents against a hash provided in the metalink XML file. If one of the servers hosting the content has been compromised and the file has been replaced with a modified payload, curl should detect this when the hash mismatches after download completion, remove the malicious content, and attempt to retrieve the file from an alternate URL. However, this is not implemented correctly—hash mismatches are only reported as text warnings while the potentially malicious content remains on disk.

Critical Impact

Attackers who compromise a metalink mirror server can deliver malicious payloads to curl users, as hash verification failures do not prevent the compromised file from being retained on the target system.

Affected Products

  • Haxx curl (versions with metalink support)
  • Fedora 33
  • NetApp Cloud Backup
  • NetApp Clustered Data ONTAP
  • NetApp HCI Management Node
  • NetApp SolidFire
  • Oracle MySQL Server
  • Siemens SINEC Infrastructure Network Services
  • Splunk Universal Forwarder
  • NetApp H-Series Hardware (H300S, H500S, H700S, H300E, H500E, H700E, H410S)

Discovery Timeline

  • August 5, 2021 - CVE-2021-22922 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-22922

Vulnerability Analysis

This vulnerability affects curl's metalink functionality, which enables downloading the same content from multiple mirror servers for redundancy and improved reliability. The metalink XML file contains URLs pointing to various mirror servers along with cryptographic hashes to verify file integrity. This design should provide protection against compromised mirrors by validating downloaded content against expected hash values.

The flaw lies in curl's improper exception handling when a hash verification failure occurs. Rather than treating a hash mismatch as a security event requiring remediation (removing the downloaded file and retrying from another source), curl merely outputs a warning message while leaving the potentially malicious file intact on the filesystem. This behavior directly contradicts the security guarantees that metalink hash verification is supposed to provide.

Root Cause

The root cause stems from improper handling of exceptional conditions (CWE-755) in curl's metalink processing logic. When the computed hash of a downloaded file does not match the expected hash from the metalink XML, the error handling code path fails to delete the compromised file or trigger fallback retrieval from alternative mirror URLs. The application treats a critical security verification failure as a non-fatal warning rather than an error requiring corrective action.

Attack Vector

An attacker who has compromised one of the mirror servers specified in a metalink XML file can exploit this vulnerability by:

  1. Replacing legitimate files on the compromised server with malicious payloads
  2. When a user's curl client attempts to download using metalink and selects the compromised mirror, the malicious file is downloaded
  3. Curl calculates the hash and detects the mismatch with the expected value
  4. Despite the verification failure, curl leaves the malicious file on the user's disk
  5. The user may unknowingly execute or use the malicious content, believing it passed integrity verification

The attack requires network access and user interaction (the victim must initiate a metalink download that includes the compromised server). The vulnerability enables integrity compromise without confidentiality or availability impact.

Detection Methods for CVE-2021-22922

Indicators of Compromise

  • Curl warning messages in logs indicating metalink hash verification failures
  • Downloaded files with unexpected checksums despite curl metalink verification being enabled
  • Evidence of curl metalink operations followed by execution of files that fail manual hash verification
  • Network connections to known compromised mirror servers during metalink download operations

Detection Strategies

  • Monitor curl process output and logs for metalink hash mismatch warnings
  • Implement file integrity monitoring to detect files that differ from expected checksums after metalink downloads
  • Review system logs for patterns indicating metalink download operations followed by immediate file execution
  • Deploy endpoint detection to correlate curl metalink usage with subsequent suspicious file activity

Monitoring Recommendations

  • Enable verbose logging for curl operations in automated scripts and deployment pipelines
  • Implement secondary hash verification for files downloaded via metalink before any execution or processing
  • Configure SIEM rules to alert on curl metalink hash verification failure messages
  • Monitor network traffic for metalink XML file retrieval followed by downloads from multiple mirror sources

How to Mitigate CVE-2021-22922

Immediate Actions Required

  • Update curl to a patched version that properly handles metalink hash verification failures
  • Disable metalink functionality if not required by adding configuration to prevent metalink URL processing
  • Implement manual hash verification as a secondary check for all metalink downloads
  • Review any files previously downloaded via metalink for integrity concerns

Patch Information

Security patches addressing this vulnerability have been released by multiple vendors. Refer to the following advisories for version-specific guidance:

  • Siemens Security Advisory SSA-389290 for SINEC Infrastructure Network Services
  • Oracle Security Alert October 2021 for MySQL Server
  • NetApp Advisory NTAP-20210902-0003 for NetApp products
  • Gentoo GLSA 202212-01 for Gentoo Linux users
  • Fedora Package Announcement for Fedora users

Workarounds

  • Disable metalink support in curl by avoiding the --metalink option in command-line usage
  • Configure curl to use direct URLs instead of metalink files when possible
  • Implement wrapper scripts that perform independent hash verification after curl metalink downloads
  • Use alternative download tools that properly handle hash verification failures when metalink security is critical
bash
# Configuration example
# Verify file integrity manually after metalink download
# This serves as a secondary check until curl is patched

# After downloading via metalink, verify the hash independently
sha256sum downloaded_file.tar.gz
# Compare output against expected hash from a trusted source

# Alternatively, avoid metalink entirely by using direct URLs
curl -O https://trusted-server.example.com/file.tar.gz
sha256sum file.tar.gz

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 Score6.5

  • EPSS Probability0.19%

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

  • CWE-755
  • Technical References
  • HackerOne Report #1213175

  • Apache Kafka Dev Mailing List Thread

  • Apache Kafka Users Mailing List Thread

  • Apache Kafka Dev Mailing List Thread

  • Apache Kafka Users Mailing List Thread

  • Fedora Package Announcement

  • Gentoo GLSA 202212-01

  • NetApp Advisory NTAP-20210902-0003
  • Vendor Resources
  • Siemens Security Advisory SSA-389290

  • Oracle Security Alert October 2021
  • 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