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

CVE-2023-38546: Haxx Libcurl Cookie Injection Vulnerability

CVE-2023-38546 is an information disclosure vulnerability in Haxx Libcurl that allows cookie injection through cloned handles. This post covers the technical details, affected versions, security impact, and mitigation.

Published: February 11, 2026

CVE-2023-38546 Overview

CVE-2023-38546 is an input validation vulnerability in libcurl that allows an attacker to insert arbitrary cookies into a running program using libcurl when a specific series of conditions are met. The flaw exists in the curl_easy_duphandle function, which is used to duplicate transfer handles. When a transfer has cookies enabled and the handle is duplicated, the cookie-enable state is cloned without cloning the actual cookies, potentially leading to unintended cookie loading from a file named none in the current working directory.

Critical Impact

Attackers can inject arbitrary cookies into applications using libcurl by placing a specially crafted file named none in the program's working directory, potentially enabling session hijacking or authentication bypass in affected applications.

Affected Products

  • Haxx libcurl (vulnerable versions prior to patch)
  • Apple macOS (addressed in HT214036, HT214057, HT214058, HT214063)
  • Fedora Linux distributions using affected libcurl versions

Discovery Timeline

  • 2023-10-18 - CVE-2023-38546 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-38546

Vulnerability Analysis

This vulnerability is an input validation flaw affecting libcurl's handle duplication mechanism. The issue arises from improper state management when duplicating transfer handles that have cookies enabled. When curl_easy_duphandle() is called on a handle with cookies enabled, the cookie state is cloned but the actual cookie data is not properly transferred. If the source handle did not read cookies from a specific file on disk, the cloned handle incorrectly stores the file name as the literal string none (four ASCII letters).

This creates a scenario where subsequent use of the cloned handle, if no explicit cookie source is set, will attempt to load cookies from a file literally named none in the current working directory. An attacker who can place such a file in the application's working directory can inject arbitrary cookies into the libcurl session.

Root Cause

The root cause lies in the curl_easy_duphandle function's handling of cookie state during handle duplication. When cloning an easy handle with cookies enabled, the function fails to properly preserve the cookie source information. Instead of maintaining a null or empty state for the cookie file path, it defaults to the literal string none. This creates an unintended file path reference that can be exploited if an attacker has write access to the application's working directory.

Attack Vector

The attack requires a specific chain of conditions to be met:

  1. The application must use libcurl with cookies enabled
  2. The application must call curl_easy_duphandle() to duplicate a transfer handle
  3. The original handle must not have loaded cookies from a specific file
  4. The attacker must be able to place a file named none in the application's current working directory
  5. The file must contain properly formatted cookies

While these conditions make exploitation difficult, the vulnerability could be leveraged in shared hosting environments, containerized applications with shared volumes, or systems where attackers have limited file write capabilities. The attack enables cookie injection which could lead to session manipulation or authentication bypass in web-facing applications that rely on libcurl for HTTP transfers.

Detection Methods for CVE-2023-38546

Indicators of Compromise

  • Unexpected files named none appearing in application working directories
  • Anomalous cookie behavior in applications using libcurl for HTTP transfers
  • File access attempts to files named none from libcurl-dependent processes

Detection Strategies

  • Monitor file system access patterns for reads to files named none from processes using libcurl
  • Implement application-level logging to track cookie sources in libcurl-based applications
  • Use file integrity monitoring on application working directories to detect unauthorized file creation

Monitoring Recommendations

  • Enable audit logging for file creation events in directories where libcurl applications execute
  • Monitor for unusual cookie injection patterns in HTTP traffic from affected applications
  • Review application logs for unexpected cookie loading behavior after handle duplication operations

How to Mitigate CVE-2023-38546

Immediate Actions Required

  • Update libcurl to the latest patched version available from your distribution
  • Review applications using curl_easy_duphandle() with cookies enabled for potential exposure
  • Ensure application working directories have proper access controls to prevent unauthorized file creation
  • Consider explicitly setting cookie sources after handle duplication to override default behavior

Patch Information

Security patches have been released by multiple vendors. Consult the official cURL CVE-2023-38546 documentation for the complete list of affected versions and patches. Apple has addressed this vulnerability in macOS updates documented in HT214036, HT214057, HT214058, and HT214063. Debian and Fedora users should apply available security updates through their package managers.

Workarounds

  • Explicitly set cookie sources using CURLOPT_COOKIEFILE after calling curl_easy_duphandle() to prevent unintended file loading
  • Restrict file creation permissions in directories where libcurl applications run
  • Implement application-level validation of cookie sources before HTTP transfers
  • Consider running libcurl applications in isolated environments with controlled file system access
bash
# Example: Verify libcurl version and check for vulnerable installations
curl --version | head -1

# Check if a file named 'none' exists in common application directories
find /var/www -name "none" -type f 2>/dev/null
find /opt -name "none" -type f 2>/dev/null

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

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

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLibcurl

  • SeverityLOW

  • CVSS Score3.7

  • EPSS Probability0.26%

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

  • Full Disclosure Mailing List Post

  • Full Disclosure Mailing List Post

  • VMS Software Forum Discussion

  • Fedora Package Announcement

  • Apple Security Document HT214036

  • Apple Security Document HT214057

  • Apple Security Document HT214058

  • Apple Security Document HT214063

  • Debian LTS Announcement
  • Vendor Resources
  • cURL CVE-2023-38546 Documentation
  • Related CVEs
  • CVE-2025-14819: libcurl TLS Information Disclosure Flaw

  • CVE-2025-15079: libcurl SSH Host Verification Bypass

  • CVE-2020-8286: Haxx Libcurl Information Disclosure Flaw

  • CVE-2026-22026: CryptoLib KMC Client DoS 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
  • 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