JLSEC-2026-1664: When invoked with `--remote-header-name` (`-J`), curl fails to preserve its documented anti...
When invoked with --remote-header-name (-J), curl fails to preserve its documented anti-clobbering protection if an intermediate 103 Early Hints response precedes the final HTTP response, or if an ETag header is processed before Content-Disposition under --etag-save. This flaw allows an HTTP(S) server to overwrite an existing local file specified in the Content-Disposition header despite the presence of the -J non-overwrite constraint.
This affects the curl executable, not the libcurl API. LibCURLjll bundled the executable through 7.81.0+0; starting with 7.81.0+1 its build removes the executable and ships it separately in CURLjll.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/LibCURL_jllto a version that resolves this vulnerability.Fixed in 7.81.0+1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.81.0+1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to this issue?
Only use of the curl executable is affected; the libcurl API is not. In the listed Julia packages, LibCURL_jll bundled the executable through 7.81.0+0, while 7.81.0+1 and later remove it from that package and ship it separately in CURL_jll.
What conditions must a server control to overwrite a local file?
The curl invocation must use --remote-header-name (-J), and the server must supply a Content-Disposition filename matching an existing local file. The bypass occurs when an intermediate 103 Early Hints response precedes the final response, or when an ETag is processed before Content-Disposition while --etag-save is in use.
What can be done if updating is not immediately possible?
Avoid using -J against untrusted HTTP(S) servers, particularly together with --etag-save. Do not rely on -J alone to prevent overwriting existing files when processing responses that can include 103 Early Hints or attacker-controlled ETag and Content-Disposition headers.