CVE-2026-12064

High

Description

When a user invokes curl using a schemeless URL combined with `--proto-default` sftp (or scp), a disconnect occurs between the tool layer and libcurl. The tool layer incorrectly infers the URL scheme, which erroneously bypasses the initialization of critical SSH security options like CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 and CURLOPT_SSH_KNOWNHOSTS. Conversely, the libcurl runtime successfully honors CURLOPT_DEFAULT_PROTOCOL and establishes the connection via SFTP/SCP as specified. Because the tool layer skipped the security configuration, these SSH host verification options are silently omitted, causing curl to connect to an unverified SSH remote host without throwing an error.

SeverityHigh
CVSS7.5
Exploit probability—
ProductHaxx Curl
PublishedJul 3, 2026
First seenJul 3, 2026
Weakness typeCWE-297CWE-297

How to fix

Update
  • haxx curl8.21.0 or later

Affected products

ProductAffected versionsFixed in
haxx curl7.81.0 ≤ v < 8.21.08.21.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.