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-2023-28319

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

CVE-2023-28319 is a use after free vulnerability in Haxx Curl's SSH fingerprint verification that can expose sensitive heap data in error messages. This article covers the technical details, affected versions, and mitigation steps.

Published: January 28, 2026

CVE-2023-28319 Overview

A use after free vulnerability exists in curl versions prior to v8.1.0 within libcurl's SSH server public key verification feature. When verifying an SSH server's public key using a SHA-256 hash, if the verification check fails, libcurl incorrectly frees the memory containing the fingerprint before constructing an error message that references this now-freed hash. This flaw creates a risk of inserting sensitive heap-based data into the error message, which may be displayed to users or otherwise leaked and revealed.

Critical Impact

This use after free vulnerability can expose sensitive heap memory contents through error messages, potentially leaking credentials, cryptographic keys, or other sensitive data stored in memory.

Affected Products

  • Haxx curl (versions prior to 8.1.0)
  • Apple macOS (multiple versions)
  • NetApp Clustered Data ONTAP
  • NetApp ONTAP Antivirus Connector
  • NetApp H300S/H500S/H700S/H410S Firmware

Discovery Timeline

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

Technical Details for CVE-2023-28319

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption issue that occurs when a program continues to use a pointer after the memory it references has been freed. In the context of curl, the vulnerable code path is triggered during SSH server public key verification using SHA-256 hash comparison.

When a user configures curl to verify an SSH server's public key fingerprint and the verification fails, libcurl enters an error handling routine. The implementation flaw causes the fingerprint memory to be freed prematurely—before the error message string is constructed. The error message then attempts to include the fingerprint value by dereferencing the already-freed memory pointer, resulting in the inclusion of arbitrary heap data in the output.

The network-accessible nature of this vulnerability means that an attacker who can influence SSH connection failures or intercept network traffic could potentially trigger this condition to extract sensitive information from the curl process's heap memory.

Root Cause

The root cause lies in improper memory management within libcurl's SSH key verification error handling path. The fingerprint buffer is deallocated before the error message referencing it is fully constructed and returned. This ordering violation means the pointer becomes dangling, and subsequent use results in reading freed heap memory. Proper implementation would require retaining the fingerprint memory until after the error message has been fully constructed and copied.

Attack Vector

The attack vector for CVE-2023-28319 requires an attacker to trigger SSH server public key verification failures in a curl session. This can be achieved through:

  1. Man-in-the-Middle Position: An attacker positioned between the curl client and the legitimate SSH server can present a different host key, causing the verification to fail
  2. DNS Hijacking: Redirecting the target hostname to an attacker-controlled server with a different SSH key
  3. Server Compromise: If an attacker controls or compromises the target SSH server, they can deliberately present incorrect keys

Once the verification fails, the error message containing heap data may be logged, displayed to the user, or transmitted to monitoring systems, providing the attacker with potential access to sensitive memory contents.

The vulnerability operates without requiring authentication and can be exploited remotely over the network, making it particularly concerning for automated systems that log curl error output.

Detection Methods for CVE-2023-28319

Indicators of Compromise

  • Unusual or malformed error messages from curl operations containing unexpected binary or ASCII data
  • SSH connection failures with abnormally long or garbled fingerprint values in error output
  • Log entries showing curl SSH verification errors with non-hexadecimal characters in fingerprint fields
  • Memory access violations or crashes in applications using vulnerable libcurl versions

Detection Strategies

  • Monitor application logs for curl SSH verification failures containing suspicious or malformed data patterns
  • Implement version scanning across infrastructure to identify systems running curl versions prior to 8.1.0
  • Deploy network monitoring to detect SSH connection anomalies that may indicate exploitation attempts
  • Use memory analysis tools to detect use-after-free conditions in applications linked against vulnerable libcurl

Monitoring Recommendations

  • Enable verbose logging for curl operations in production environments to capture potential exploitation attempts
  • Set up alerting for SSH key verification failures, particularly those with unusual error message content
  • Conduct regular software inventory audits to ensure all curl installations are updated to patched versions
  • Monitor for network traffic patterns indicative of man-in-the-middle attacks targeting SSH connections

How to Mitigate CVE-2023-28319

Immediate Actions Required

  • Upgrade curl to version 8.1.0 or later immediately on all affected systems
  • Review application logs for evidence of prior exploitation or unusual error messages from SSH operations
  • Assess all systems using libcurl for SSH operations and prioritize patching based on exposure
  • Consider temporarily disabling SSH public key verification features if patching cannot be immediately applied

Patch Information

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

  • Haxx (curl maintainers): Fixed in curl 8.1.0 - reported via HackerOne Report #1913733
  • Apple: Security updates HT213843, HT213844, and HT213845
  • NetApp: Security Advisory NTAP-20230609-0009
  • Gentoo Linux: GLSA 202310-12

Workarounds

  • Avoid using the SSH public key verification feature (CURLOPT_SSH_KNOWNHOSTS or --hostpubsha256) until systems can be patched
  • Implement network segmentation to limit exposure of systems running vulnerable curl versions
  • Ensure error messages from curl operations are not logged or displayed in user-accessible locations
  • Use alternative SSH client implementations for critical operations until curl can be updated
bash
# Configuration example
# Verify installed curl version
curl --version

# If version is below 8.1.0, upgrade using package manager
# For Debian/Ubuntu:
sudo apt update && sudo apt install curl

# For RHEL/CentOS:
sudo yum update curl

# For macOS (using Homebrew):
brew upgrade curl

# Verify the upgrade was successful
curl --version | grep -E "^curl [0-9]"

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

  • EPSS Probability0.32%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-416
  • Technical References
  • Full Disclosure Mailing List Post

  • Full Disclosure Mailing List Post

  • Full Disclosure Mailing List Post

  • Gentoo GLSA 202310-12

  • NetApp Security Advisory NTAP-20230609-0009

  • Apple Security Update HT213843

  • Apple Security Update HT213844

  • Apple Security Update HT213845
  • Vendor Resources
  • HackerOne Report #1913733
  • Related CVEs
  • CVE-2022-32221: Haxx Curl Use-After-Free Vulnerability

  • CVE-2025-0665: 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