Skip to main content

curl CVE-2026-86410

LOW
2026-10-14 vendor:ubuntu
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim runs curl with --location --proto-redir +sftp
  2. Delivery
    Attacker-controlled HTTPS server returns Location: sftp:// redirect
  3. Exploit
    curl follows redirect, skipping host verification
  4. Execution
    MITM impersonates SSH host
  5. Impact
    Intercept or tamper SFTP data

Vulnerability Assessment

Exploitation Conditions

Exploitation requires a specific, non-default curl invocation: the user must pass --location (follow redirects) together with --proto-redir +sftp and have supplied SSH host-verification options (--knownhosts, --hostpubsha256, or --hostpubmd5), and the initial URL must be HTTPS. The attacker must additionally control or tamper with the HTTPS server so it returns a 'Location: sftp://...' redirect, and must be positioned as an in-path/man-in-the-middle to impersonate the SSH host for the bypass to be meaningful. Limiting factors: this flag combination is uncommon and opt-in (not default behavior), the attack needs attacker influence over the HTTPS response plus a MITM position on the SFTP connection, and the bug only degrades a security control the user deliberately requested rather than opening direct code execution or data access by itself.

Impact

This is a logic flaw in the curl command-line tool where SSH host-key verification options (--knownhosts, --hostpubsha256, --hostpubmd5) are silently not applied when an SFTP/SCP connection is reached via an HTTPS redirect rather than directly. Key prioritization signals are largely absent: no CVSS vector, no CWE, no EPSS score, no POC, and the vulnerability is NOT on the CISA KEV list (no public exploit identified at time of analysis). Exploitation is narrowly gated: the victim must explicitly invoke a non-default and uncommon flag combination (--location together with --proto-redir +sftp), the attacker must control or tamper with the HTTPS server to emit a 'Location: sftp://' redirect, and the attacker must additionally be positioned to intercept or impersonate the SSH endpoint for the bypass to yield real value (a man-in-the-middle). Despite curl being ubiquitously deployed, the combination of a rare opt-in configuration and the need for an active MITM position makes this a medium/low real-world risk rather than a mass-exploitation priority - it is a defense-in-depth bypass against users who deliberately asked for strict host verification. CVSS, CWE, EPSS, KEV and POC data are all MISSING from the input; the only confirmed external signal is that Ubuntu shipped a patch (USN-8927-1), so severity here is inferred from the description, not vendor-scored.

Exploit ScenarioDerived

A user runs curl against an HTTPS URL with --location --proto-redir +sftp and their own SSH host-verification flags set, expecting those checks to protect the eventual SFTP transfer. An attacker who controls or can tamper with the HTTPS response returns a 'Location: sftp://evil.example.com' redirect; curl follows it and opens the SFTP session with no host verification, allowing an in-path attacker to impersonate the SSH server and intercept or alter the transferred data. No public exploit code is identified at time of analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 14, 2026

SSH host-key verification that the user explicitly requested is silently dropped by the curl command-line tool when an SFTP or SCP transfer is reached by following an HTTPS redirect, so --knownhosts, --hostpubsha256, and --hostpubmd5 never take effect on that connection. Only the opt-in combination of --location plus --proto-redir +sftp starting from an HTTPS URL is affected, and an attacker must additionally control the HTTPS response (to inject Location: sftp://...) and hold an in-path position to impersonate the SSH host - the bug degrades a requested security control rather than providing code execution or data access by itself. The independent assessment scores this CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N (Medium severity, unauthenticated but requiring user interaction), and no public exploit identified at time of analysis.

RemediationAI

Patch status is "Patch available per vendor advisory" - no exact fixed version number is given in the source data, so apply the curl update from your distribution, specifically the version referenced in Ubuntu Security Notice USN-8927-1 (https://ubuntu.com/security/notices/USN-8927-1) for Ubuntu systems and the corresponding update from your own vendor for other platforms, then verify the installed curl build date/version. Until patched, the most direct mitigation is to stop using the vulnerable invocation: do not combine --location with --proto-redir +sftp on HTTPS URLs. Resolve redirects manually instead - fetch the initial HTTPS URL without --location, inspect the Location header, and then invoke curl (or scp/sftp) directly against the resulting sftp:// URL so that --knownhosts, --hostpubsha256, or --hostpubmd5 are installed on the SFTP transfer; the trade-off is extra scripting and loss of automatic redirect handling, but host verification then behaves as intended. A blunter control is to remove sftp from the redirect allow-list (use --proto-redir =https, or omit +sftp), which blocks the HTTPS→SFTP bypass path entirely at the cost of breaking any legitimate redirects that intentionally target SFTP; such requests will fail with a protocol-denied error. Restricting outbound SFTP access and blocking unexpected SSH host keys at the network/egress layer adds defence against the accompanying impersonation step but is not a substitute for the patch, and pinning host keys via a controlled known_hosts file should be treated as ineffective for the affected flag combination until the tool is updated.

Affected ProductsAI

The affected product is the curl command-line tool (CLI binary) as shipped by distributions that carry the redirect/SSH option-handling flaw; the source data supplies no CPE strings and no upstream version ranges, so exact affected versions must be taken from the vendor advisory rather than inferred. Ubuntu packages are addressed by the Ubuntu Security Notice USN-8927-1 (https://ubuntu.com/security/notices/USN-8927-1), reported by vendor:ubuntu, which is the authoritative reference supplied with this CVE; other distributions and upstream curl releases that backport the same tool logic should be checked against their own advisories. Because the description attributes the flaw to the command-line tool's option logic rather than to libcurl, applications that link the library and do not use the curl CLI's --location/--proto-redir/--knownhosts handling are not described as affected by this specific issue.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the curl command-line tool's own option and transfer-setup logic (the source data identifies the CLI tool, not the libcurl transfer library, as the faulty code path). In normal operation curl installs the user's SSH host-verification parameters - a known-hosts file via --knownhosts, a pinned SHA-256 host key via --hostpubsha256, or a pinned MD5 host key via --hostpubmd5 - into the SFTP/SCP connection configuration when the transfer is set up for those protocols. When --location is used and the peer answers the initial HTTPS request with a cross-protocol redirect such as Location: sftp://example.com/path, combined with --proto-redir +sftp (curl's allow-list of protocols permitted in redirects), the redirect-driven SFTP connection is established through a code path that never applies those SSH options, leaving the session without the host authentication the operator asked for. No CWE was assigned in the source data; the weakness is an authentication-control logic flaw, and an analyst mapping would place it closest to host/certificate validation omission and authentication bypass by spoofing classes. The practical consequence is an HTTPS→SFTP protocol switch that silently discards a verification control, which is meaningful only when an adversary can both forge the HTTPS response and man-in-the-middle the subsequent SSH transport; the flag sequence is non-default and uncommon, and nothing in the data indicates the default behaviour of other curl transfers or of libcurl-linked applications is affected.

Know when Curl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

vuln.today AI 6.8 MEDIUM

Network vector but AC:H and UI:R because it needs a rare opt-in flag combo plus an attacker MITM/redirect position; MITM of SSH compromises confidentiality and integrity (C:H/I:H), no availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

DescriptionCVE.org

A flaw in the curl command line tool's logic makes it only set SSH host verification options when interacting directly using SFTP or SCP, and not as a result of following a redirect. This means --knownhosts, --hostpubsha256, and --hostpubmd5 are never installed when the initial URL is HTTPS. If --location and --proto-redir +sftp is used and the server returns a Location: sftp://example.com redirect, the SFTP connection proceeds without any of the user's requested SSH host verification methods.

Threat Intelligence Overview

Prevalence
Ubiquitous
curl ships by default on nearly all Linux/Unix systems and embedded apps
Data Quality
1 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Curl

View all
CVE-2021-22901 HIGH POC
8.1 Jun 11

curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when

CVE-2013-0249 HIGH POC
7.5 Mar 08

Stack-based buffer overflow in the Curl_sasl_create_digest_md5_message function in lib/curl_sasl.c in curl and libcurl 7

CVE-2015-3145 HIGH
7.5 Apr 24

The sanitize_cookie_path function in cURL and libcurl 7.31.0 through 7.41.0 does not properly calculate an index, which

CVE-2022-32206 MEDIUM POC
6.5 Jul 07

curl < 7.84.0 supports "chained" HTTP compression algorithms, meaning that a serverresponse can be compressed multiple t

CVE-2022-32207 CRITICAL POC
9.8 Jul 07

When curl < 7.84.0 saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the

CVE-2022-43551 HIGH POC
7.5 Dec 23

A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Rated high seve

CVE-2022-32221 CRITICAL POC
9.8 Dec 05

When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data t

CVE-2018-0500 CRITICAL POC
9.8 Jul 11

Curl_smtp_escape_eob in lib/smtp.c in curl 7.54.1 to and including curl 7.60.0 has a heap-based buffer overflow that mig

CVE-2022-32205 MEDIUM POC
4.3 Jul 07

A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl < 7.84.0 sto

CVE-2025-9086 HIGH POC
7.5 Sep 12

1. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack co

CVE-2023-23914 CRITICAL POC
9.1 Feb 23

A cleartext transmission of sensitive information vulnerability exists in curl <v7.88.0 that could cause HSTS functional

CVE-2023-27534 HIGH POC
8.8 Mar 30

A path traversal vulnerability exists in curl <8.0.0 SFTP implementation causes the tilde (~) character to be wrongly re

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy