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
    • 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-2023-28321

CVE-2023-28321: Haxx Curl Certificate Validation Vulnerability

CVE-2023-28321 is an improper certificate validation flaw in Haxx Curl affecting versions before 8.1.0. The wildcard pattern matching weakness allows incorrect IDN hostname validation in TLS certificates, enabling potential attacks.

Published: February 11, 2026

CVE-2023-28321 Overview

An improper certificate validation vulnerability exists in curl versions prior to v8.1.0 that affects how wildcard patterns are matched when listed as "Subject Alternative Name" in TLS server certificates. When curl is built to use its own name matching function for TLS rather than one provided by a TLS library, the private wildcard matching function incorrectly matches IDN (International Domain Name) hosts, potentially accepting patterns that should otherwise mismatch.

IDN hostnames are converted to punycode before being used for certificate checks. Punycode names always start with xn-- and should not be allowed to pattern match. However, the wildcard check in curl could still check for patterns like x*, which would match even though the IDN name most likely contained nothing resembling an x. This flaw could allow attackers to present fraudulent certificates that would be incorrectly validated.

Critical Impact

An attacker could exploit this certificate validation bypass to perform man-in-the-middle attacks against applications using affected curl versions, potentially intercepting or modifying sensitive data in transit.

Affected Products

  • Haxx curl versions prior to 8.1.0
  • Debian Linux 10.0
  • Fedora 37 and 38
  • NetApp Clustered Data ONTAP
  • NetApp ONTAP Antivirus Connector
  • NetApp H300S, H500S, H700S, H410S (firmware and hardware)
  • Apple macOS (multiple versions)

Discovery Timeline

  • 2023-05-26 - CVE-2023-28321 published to NVD
  • 2025-01-15 - Last updated in NVD database

Technical Details for CVE-2023-28321

Vulnerability Analysis

This vulnerability (CWE-295: Improper Certificate Validation) resides in curl's internal certificate name matching implementation. When curl is compiled to use its own wildcard matching function instead of relying on the underlying TLS library's implementation, a logic flaw occurs during the validation of Subject Alternative Names (SANs) in TLS certificates.

The core issue stems from how punycode-encoded Internationalized Domain Names are processed during wildcard pattern matching. Domain names containing non-ASCII characters are converted to punycode format, which prefixes them with xn--. The security assumption is that punycode domains should not participate in wildcard matching due to the complexity of ensuring accurate comparisons across different character encodings.

However, curl's internal wildcard matching function failed to properly exclude punycode domains from pattern matching. As a result, a wildcard pattern like x* in a certificate's SAN field could incorrectly match punycode domains starting with xn--, even when the original IDN bore no resemblance to the pattern.

Root Cause

The root cause is a logic error in curl's custom wildcard matching function used for TLS certificate validation. The function did not properly handle the special case of punycode-encoded International Domain Names, allowing wildcard patterns to match against the xn-- prefix that all punycode domains share. This implementation oversight created a gap between expected security behavior and actual certificate validation logic.

Attack Vector

This vulnerability is exploitable over the network and requires an attacker to be in a position to intercept TLS connections (man-in-the-middle position). The attack scenario involves:

  1. An attacker obtains a valid certificate with a wildcard SAN pattern (e.g., x*.attacker.com)
  2. The victim attempts to connect to a legitimate IDN domain that gets converted to punycode (e.g., xn--example.com)
  3. The attacker intercepts the connection and presents their certificate
  4. Vulnerable curl versions incorrectly validate the certificate because x* matches xn--example.com
  5. The TLS connection is established with the attacker's server instead of the legitimate destination

The vulnerability requires no user interaction and no privileges, but exploitation complexity is high as it requires the attacker to be positioned for a man-in-the-middle attack and the target to be using curl's internal certificate matching function.

Detection Methods for CVE-2023-28321

Indicators of Compromise

  • Unexpected TLS certificate warnings or errors in application logs that were subsequently ignored
  • Network traffic showing TLS connections to unexpected endpoints for IDN domains
  • Evidence of certificate substitution in proxy or network monitoring logs
  • Applications connecting to IDN domains exhibiting unexpected behavior or data leakage

Detection Strategies

  • Audit systems to identify curl installations with versions below 8.1.0
  • Review build configurations to determine if curl is using its internal certificate matching function
  • Implement network monitoring to detect certificate mismatches for IDN domain connections
  • Enable verbose logging in applications using libcurl to capture certificate validation details

Monitoring Recommendations

  • Configure SIEM rules to alert on TLS certificate validation anomalies involving punycode domains
  • Monitor for connections to domains with xn-- prefixes that resolve to unexpected IP addresses
  • Implement certificate transparency log monitoring for wildcard certificates that could be used in exploitation
  • Enable endpoint detection to identify applications using vulnerable curl versions

How to Mitigate CVE-2023-28321

Immediate Actions Required

  • Upgrade curl to version 8.1.0 or later immediately
  • Review and update all applications and dependencies that bundle libcurl
  • Configure curl to use TLS library-provided certificate matching where possible
  • Audit systems for vulnerable versions using package managers or vulnerability scanners
  • Consider implementing certificate pinning for critical connections

Patch Information

The vulnerability has been addressed in curl version 8.1.0 and later. Multiple vendors have released security updates:

  • Haxx curl: Fixed in version 8.1.0 - see HackerOne Report #1950627
  • Debian: Security update available via Debian LTS Announcement
  • Fedora: Packages updated per Fedora Package Announcements
  • NetApp: Advisory available at NetApp Security Advisory NTAP-20230609-0009
  • Apple macOS: Updates available via Apple Support Document HT213843, HT213844, and HT213845
  • Gentoo: Security update documented in GLSA 202310-12

Workarounds

  • Configure curl builds to use TLS library certificate verification instead of curl's internal implementation
  • Implement additional certificate validation at the application layer for IDN domains
  • Use network-level controls to monitor and validate TLS connections to punycode domains
  • Deploy web application firewalls or proxy servers that perform independent certificate validation
bash
# Check curl version to verify if vulnerable
curl --version

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

# Update curl on RHEL/Fedora systems
sudo dnf update curl libcurl

# Update curl on macOS via Homebrew
brew update && brew upgrade 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/TechCurl

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-295
  • Technical References
  • Full Disclosure Post July 47

  • Full Disclosure Post July 48

  • Full Disclosure Post July 52

  • Debian LTS Announcement October 2023

  • Fedora Package Announcement #F4I75RD

  • Fedora Package Announcement #Z2LIWHW

  • Gentoo GLSA 202310-12

  • NetApp Security Advisory NTAP-20230609-0009

  • Apple Support Document HT213843

  • Apple Support Document HT213844

  • Apple Support Document HT213845
  • Vendor Resources
  • HackerOne Report #1950627
  • Related CVEs
  • CVE-2025-13034: libcurl Information Disclosure Vulnerability

  • CVE-2025-14524: curl OAuth2 Token Disclosure Vulnerability

  • CVE-2025-11563: Curl Wcurl Path Traversal Vulnerability

  • CVE-2022-42916: Haxx Curl HSTS Auth Bypass 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