Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim runs curl with --location --proto-redir +sftp
-
DeliveryAttacker-controlled HTTPS server returns Location: sftp:// redirect
-
Exploitcurl follows redirect, skipping host verification
-
ExecutionMITM impersonates SSH host
-
ImpactIntercept 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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.
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
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.
What every action level means
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when
Stack-based buffer overflow in the Curl_sasl_create_digest_md5_message function in lib/curl_sasl.c in curl and libcurl 7
The sanitize_cookie_path function in cURL and libcurl 7.31.0 through 7.41.0 does not properly calculate an index, which
curl < 7.84.0 supports "chained" HTTP compression algorithms, meaning that a serverresponse can be compressed multiple t
When curl < 7.84.0 saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the
A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Rated high seve
When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data t
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
A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl < 7.84.0 sto
1. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack co
A cleartext transmission of sensitive information vulnerability exists in curl <v7.88.0 that could cause HSTS functional
A path traversal vulnerability exists in curl <8.0.0 SFTP implementation causes the tilde (~) character to be wrongly re
CVE.org
GitHub PoC
Exploit-DB