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-2022-32207

CVE-2022-32207: Haxx Curl Privilege Escalation Flaw

CVE-2022-32207 is a privilege escalation vulnerability in Haxx Curl that widens file permissions during save operations, exposing cookies and cached data. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-32207 Overview

CVE-2022-32207 is an insecure permissions vulnerability affecting curl versions prior to 7.84.0. When curl saves cookies, alt-svc, and HSTS data to local files, it performs an atomic operation by finalizing the write with a rename from a temporary file to the final target filename. During this rename operation, curl may inadvertently widen the permissions on the target file, potentially making the updated file accessible to more users than originally intended.

This vulnerability poses significant security concerns as it can lead to unauthorized information disclosure. Sensitive data stored in these files—including session cookies, security policy data, and HTTP Strict Transport Security (HSTS) configurations—could be exposed to unauthorized local users or processes on the same system.

Critical Impact

Sensitive cookie data, alt-svc records, and HSTS policies may become world-readable, enabling local attackers to hijack sessions or bypass security policies.

Affected Products

  • haxx curl (versions prior to 7.84.0)
  • fedoraproject fedora 35
  • debian debian_linux 11.0
  • netapp clustered_data_ontap
  • netapp element_software
  • netapp hci_management_node
  • netapp solidfire
  • netapp hci_compute_node
  • apple macos
  • splunk universal_forwarder

Discovery Timeline

  • 2022-07-07 - CVE-2022-32207 published to NVD
  • 2025-04-23 - Last updated in NVD database

Technical Details for CVE-2022-32207

Vulnerability Analysis

The vulnerability arises from improper file permission handling during curl's file persistence operations. When curl writes cookies, alt-svc, or HSTS data to disk, it employs an atomic write pattern for data integrity: first writing to a temporary file, then renaming it to the target location. However, during the rename operation, the file permission handling logic contains a flaw that can inadvertently expand the permissions beyond the originally intended restrictive mode.

This creates a race condition scenario where the final file may inherit permissions that are more permissive than the original file or the umask would normally allow. The consequence is that files containing authentication tokens, session cookies, and security transport policies become readable by users who should not have access to this sensitive data.

Root Cause

The root cause is classified under CWE-276 (Incorrect Default Permissions) and CWE-840 (Business Logic Errors). The vulnerability stems from curl's file operation logic failing to properly preserve or enforce restrictive permissions when performing the atomic rename from temporary to final target file. Instead of maintaining the intended restrictive permissions, the rename operation may reset or widen permissions based on the system's default umask or other environmental factors.

Attack Vector

The attack vector is network-accessible, though exploitation primarily occurs locally. An attacker on the same system can exploit the widened permissions to read sensitive curl data files. The attack scenario involves:

  1. A user or application uses curl with cookie/alt-svc/HSTS file storage features
  2. curl performs a write operation, creating a temporary file and renaming it
  3. Due to the permission flaw, the final file becomes more accessible
  4. A local attacker monitors for these permission changes and reads the exposed data
  5. The attacker extracts session cookies or security policies to hijack sessions or perform further attacks

The vulnerability does not require authentication and has no user interaction requirement, as it occurs automatically during normal curl operations. The potential for exposure of highly sensitive authentication data makes this a significant security concern in multi-user environments.

Detection Methods for CVE-2022-32207

Indicators of Compromise

  • Unusual file permission changes on curl configuration files (cookies, alt-svc, HSTS files) to world-readable modes
  • Unexpected read access patterns to cookie files from non-owner processes
  • Evidence of session hijacking or unauthorized authentication using valid session tokens
  • Anomalous file system monitoring events around curl data directories

Detection Strategies

  • Implement file integrity monitoring (FIM) on curl data directories to detect permission changes
  • Deploy audit logging for file permission modifications using auditd rules targeting curl-related paths
  • Monitor for curl processes writing to files and immediately check resulting file permissions
  • Use security scanning tools to identify curl versions below 7.84.0 across the environment

Monitoring Recommendations

  • Enable file access auditing on directories containing curl cookie and configuration files
  • Configure SIEM alerts for unexpected permission changes on sensitive application data files
  • Implement endpoint detection rules for suspicious file permission patterns in multi-user systems
  • Schedule regular vulnerability scans to identify unpatched curl installations

How to Mitigate CVE-2022-32207

Immediate Actions Required

  • Upgrade curl to version 7.84.0 or later immediately
  • Audit existing curl data files (cookies, alt-svc, HSTS) for improper permissions and correct them
  • Review applications and scripts that use curl with file storage features and ensure they are using patched versions
  • On multi-user systems, implement restrictive umask settings as a defense-in-depth measure

Patch Information

The vulnerability is fixed in curl version 7.84.0. Multiple vendors have released security updates addressing this vulnerability:

  • Debian: Security advisory DSA-5197
  • Fedora: Package update available via Fedora Package Announcement
  • Gentoo: GLSA 202212-01
  • NetApp: Security Advisory NTAP-20220915-0003
  • Apple: Security Update HT213488 for macOS

For additional technical details, see the HackerOne Report #1573634.

Workarounds

  • Apply restrictive umask (e.g., umask 077) before running curl operations that write to files
  • Ensure curl data files are stored in directories with restrictive permissions (e.g., 700)
  • Avoid using curl's file-based cookie/alt-svc/HSTS storage on shared multi-user systems until patched
  • Use application-level controls to verify file permissions after curl operations complete
bash
# Configuration example
# Apply restrictive umask before curl operations
umask 077

# Verify and fix permissions on existing curl data files
chmod 600 ~/.curl_cookies
chmod 600 ~/.curlrc
chmod 700 ~/.curl/

# Check curl version to confirm patch status
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
  • TypePrivilege Escalation

  • Vendor/TechHaxx Curl

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.20%

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

  • CWE-276
  • Technical References
  • Full Disclosure Mailing List Post

  • Full Disclosure Mailing List Post

  • HackerOne Report #1573634

  • Fedora Package Announcement

  • Gentoo GLSA 202212-01

  • NetApp Security Advisory NTAP-20220915-0003

  • Apple Security Update HT213488

  • Debian Security DSA-5197
  • Related CVEs
  • CVE-2026-1965: Haxx Curl Auth Bypass Vulnerability

  • CVE-2026-3783: Haxx Curl Information Disclosure Vulnerability

  • CVE-2026-3784: Haxx Curl Auth Bypass Vulnerability

  • CVE-2026-3805: Haxx Curl Use-After-Free 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