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-2020-8177

CVE-2020-8177: Haxx Curl Path Traversal Vulnerability

CVE-2020-8177 is a path traversal vulnerability in Haxx Curl versions 7.20.0 through 7.70.0 that allows local file overwriting when the -J flag is used. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-8177 Overview

CVE-2020-8177 is a local file overwrite vulnerability affecting curl versions 7.20.0 through 7.70.0. The vulnerability stems from improper restriction of names for files and other resources, allowing an attacker to overwrite local files when the -J (Content-Disposition header) flag is used in conjunction with -O (remote output).

Critical Impact

Attackers can leverage this vulnerability to overwrite arbitrary local files on the victim's system, potentially leading to code execution, privilege escalation, or denial of service through corruption of critical system files.

Affected Products

  • Haxx curl versions 7.20.0 through 7.70.0
  • Debian Linux 10.0
  • Fujitsu M10/M12 series firmware (M10-1, M10-4, M10-4s, M12-1, M12-2, M12-2s)
  • Siemens SINEC Infrastructure Network Services
  • Splunk Universal Forwarder (including version 9.1.0)

Discovery Timeline

  • 2020-12-14 - CVE-2020-8177 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-8177

Vulnerability Analysis

This vulnerability is classified under CWE-99 (Improper Control of Resource Identifiers) and CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component). The flaw exists in curl's handling of the -J flag, which instructs curl to use the filename specified in the server's Content-Disposition header for saving downloaded content.

When combined with the -O flag for remote output, curl fails to properly validate and sanitize the filename provided by the server. This allows a malicious server to craft a Content-Disposition header containing path traversal sequences or special characters that can cause curl to overwrite files outside the intended download directory.

The attack requires local access, meaning an attacker must either control a malicious server that a local user connects to, or be able to inject malicious content into a trusted server's responses.

Root Cause

The root cause lies in insufficient input validation of server-supplied filenames in the Content-Disposition header. When processing this header with the -J flag enabled, curl versions 7.20.0 through 7.70.0 do not adequately sanitize filenames to prevent directory traversal or overwriting of existing files. The filename parsing logic fails to reject dangerous path components such as .. sequences or absolute paths, allowing attackers to escape the current working directory.

Attack Vector

The attack requires a local user to initiate a curl request to a malicious or compromised server while using the -J (or --remote-header-name) flag combined with -O (or --remote-name). The malicious server responds with a crafted Content-Disposition header containing a specially constructed filename. When curl processes this header, it writes the downloaded content to the attacker-specified location rather than the intended directory.

For exploitation to succeed, the victim must:

  1. Use a vulnerable version of curl (7.20.0 - 7.70.0)
  2. Execute curl with both -J and -O flags
  3. Connect to an attacker-controlled or compromised server
  4. Have write permissions to the target file location

The attacker can leverage this to overwrite configuration files, scripts, or other sensitive files that may lead to further compromise when executed or read by privileged processes.

Detection Methods for CVE-2020-8177

Indicators of Compromise

  • Unexpected modifications to configuration files, scripts, or binaries with timestamps correlating to curl download activity
  • Curl processes executing with -J and -O flags downloading from untrusted or suspicious servers
  • Log entries showing curl connections to unusual domains followed by file system changes outside expected download directories
  • Presence of files with unusual names or paths that match patterns typically seen in Content-Disposition exploitation attempts

Detection Strategies

  • Monitor process execution for curl invocations using the -J or --remote-header-name flag in combination with -O or --remote-name
  • Implement file integrity monitoring (FIM) on critical system files and configuration directories to detect unauthorized modifications
  • Deploy network monitoring to identify curl connections to untrusted or newly registered domains
  • Create SIEM correlation rules linking curl process execution with subsequent file modification events outside expected paths

Monitoring Recommendations

  • Enable comprehensive logging of curl command executions including full command-line arguments
  • Configure endpoint detection solutions to alert on file writes following curl processes, particularly those targeting sensitive directories
  • Monitor for curl binary usage patterns that deviate from baseline behavior in your environment
  • Implement network segmentation and egress filtering to limit curl connections to approved external resources

How to Mitigate CVE-2020-8177

Immediate Actions Required

  • Upgrade curl to version 7.71.0 or later immediately on all affected systems
  • Audit systems for curl versions in the vulnerable range (7.20.0 - 7.70.0) using package management tools or direct version queries
  • Review scripts and automation that use curl with -J flag and assess the trust level of destination servers
  • Implement application whitelisting or restrictions on curl flag usage where possible

Patch Information

The vulnerability was addressed in curl version 7.71.0, released by the curl project. Organizations should update to version 7.71.0 or later. For detailed information on the fix, consult the official curl security advisory. Additional vendor advisories are available from Siemens, Debian, and Oracle.

Firmware updates for affected Fujitsu M10/M12 series hardware should be obtained through Fujitsu support channels. Splunk Universal Forwarder users should upgrade to patched versions as specified in Splunk security advisories.

Workarounds

  • Avoid using the -J flag with curl when downloading from untrusted or unverified servers
  • Use explicit local filenames with the -o flag instead of relying on server-provided names via -J
  • Implement network-level controls to restrict curl access to trusted, verified destinations only
  • Run curl operations in sandboxed environments or containers with limited filesystem write access
bash
# Recommended: Use explicit filename instead of -J flag
curl -o known_safe_filename.tar.gz https://trusted-server.com/download

# Avoid this pattern with untrusted servers:
# curl -J -O https://untrusted-server.com/file

# Verify curl version to ensure patched release
curl --version
# Ensure version is 7.71.0 or later

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechHaxx Curl

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.02%

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

  • CWE-74
  • Technical References
  • HackerOne Report #887462

  • Debian Security Notice DSA-4881
  • Vendor Resources
  • Siemens Security Advisory SSA-389290

  • Curl CVE-2020-8177 Details

  • Oracle January 2022 Security Alert
  • Related CVEs
  • CVE-2023-27534: Haxx Curl Path Traversal Vulnerability

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

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

  • CVE-2026-3784: Haxx Curl 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