Skip to main content
Vulnerability Database/CVE-2026-92390

CVE-2026-92390: curl File Overwrite Vulnerability

CVE-2026-92390 is a file overwrite flaw in curl that bypasses anti-clobbering protection when processing 103 Early Hints or ETag headers. This post explains its impact, affected versions, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-92390 Overview

CVE-2026-92390 affects the curl command-line tool when invoked with the --remote-header-name (-J) option. The flag is documented to prevent curl from overwriting existing local files when a server supplies a filename through the Content-Disposition header. The anti-clobbering check breaks in two scenarios: when an HTTP 103 Early Hints response precedes the final response, and when an ETag header is processed before Content-Disposition under --etag-save. A malicious HTTP(S) server can exploit either path to overwrite arbitrary existing files that the user has write access to.

Critical Impact

A remote HTTP(S) server can overwrite local files on the client despite the documented -J non-overwrite protection, enabling targeted file corruption or replacement during legitimate downloads.

Affected Products

  • curl command-line tool using --remote-header-name (-J)
  • curl command-line tool using --etag-save combined with -J
  • Downstream distributions and tooling that invoke curl with these options

Discovery Timeline

  • 2026-10-20 - CVE-2026-92390 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-92390

Vulnerability Analysis

The -J option instructs curl to use the server-supplied filename from the Content-Disposition response header as the local output filename. Documentation states curl will refuse to overwrite a pre-existing file with the chosen name. The implementation of this guard is bypassed under two conditions tied to header processing order.

The first condition involves 103 Early Hints, an informational HTTP status that permits a server to send header fields before the final response. When a 103 message precedes the final response, curl's state tracking for the anti-clobbering check does not persist correctly into final-response handling. The second condition arises when --etag-save is combined with -J; processing the ETag header first alters internal state so the later Content-Disposition filename bypasses the overwrite check.

The net effect is that a server can direct curl to write to an existing local file path, defeating the user's expectation that -J protects against clobbering.

Root Cause

The root cause is an ordering flaw in curl's header processing state machine. The anti-clobbering decision depends on state that is reset or not yet established when either a 103 Early Hints interim response or an early ETag header is handled. The guard runs against stale or incorrect state and permits the write.

Attack Vector

Exploitation requires a victim to run curl against an attacker-controlled or attacker-influenced HTTP(S) endpoint with -J enabled, optionally with --etag-save. The server returns either a 103 Early Hints interim response before the final 200, or supplies ETag before Content-Disposition. The Content-Disposition filename then targets an existing file in the current working directory, such as a shell configuration file or application data file, which curl overwrites with server-supplied content.

No verified public exploit code is referenced in the advisory. See the cURL CVE-2026-92390 Documentation and HackerOne Report #4023192 for the technical write-up.

Detection Methods for CVE-2026-92390

Indicators of Compromise

  • Local files unexpectedly modified or truncated immediately after a curl invocation using -J or --etag-save.
  • HTTP transactions containing a 103 Early Hints interim status followed by a final response carrying Content-Disposition: attachment; filename=.
  • Server responses where ETag appears before Content-Disposition in the header stream when the client used --etag-save.

Detection Strategies

  • Inspect shell history, CI job logs, and automation scripts for curl commands using -J, --remote-header-name, or --etag-save.
  • Capture HTTP response headers at network egress points and flag 103 interim responses paired with Content-Disposition filenames targeting dotfiles or configuration paths.
  • Correlate file-write events on endpoints with child processes of curl to identify writes outside expected download directories.

Monitoring Recommendations

  • Alert when curl writes to paths matching sensitive patterns such as ~/.ssh/*, ~/.bashrc, or application config files.
  • Record curl version strings across managed hosts and track rollout of the patched release.
  • Monitor outbound HTTP(S) connections from build systems and developer workstations for responses that combine -J-relevant headers with interim 103 status codes.

How to Mitigate CVE-2026-92390

Immediate Actions Required

  • Inventory systems and scripts invoking curl with -J, --remote-header-name, or --etag-save and prioritize upgrading those hosts.
  • Upgrade curl to the fixed version identified in the cURL CVE-2026-92390 Documentation.
  • Restrict use of -J to trusted endpoints until patched binaries are deployed across the environment.

Patch Information

Refer to the cURL CVE-2026-92390 Documentation and the machine-readable cURL CVE-2026-92390 JSON Report for the exact fixed version, affected version ranges, and distribution-level backports. Apply vendor-supplied package updates from your Linux distribution, container base image, or OS vendor once available.

Workarounds

  • Avoid the -J / --remote-header-name option; specify output filenames explicitly with -o <filename>.
  • Avoid combining --etag-save with -J until the patched version is installed.
  • Run curl in a dedicated download directory with no pre-existing files that an attacker could target for overwrite.
  • Validate server identity and prefer downloads from authenticated, trusted origins when server-chosen filenames are required.
bash
# Safer invocation: specify the output filename explicitly
curl -o ./downloads/package.tar.gz https://example.com/package.tar.gz

# If -J is required, isolate the working directory
mkdir -p /tmp/curl-dl && cd /tmp/curl-dl
curl -J -O https://trusted.example.com/resource

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.