Vulnerability · Published Jul 3, 2026 · Assigned by curl

CVE-2026-12064proto-default skips SSH verification

High 7.5

In plain English

A high-severity security flaw in curl from curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 64.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23curl8.22.0-r0ALPINE-CVE-2026-12064
Alpine:v3.24curl8.21.0-r0ALPINE-CVE-2026-12064
Debian:12curlno fix listedDEBIAN-CVE-2026-12064
Debian:13curlno fix listedDEBIAN-CVE-2026-12064
Debian:14curl8.21.0~rc3-1DEBIAN-CVE-2026-12064
Ubuntu:25.10curl8.14.1-2ubuntu1.5UBUNTU-CVE-2026-12064
Ubuntu:26.04:LTScurl8.18.0-1ubuntu2.3UBUNTU-CVE-2026-12064

Affected products (as reported)

VendorProductVersions
curl curl 7.81.0 – before 8.14.28.15.0 – before 8.16.18.17.0 – before 8.20.1
curl curl 18270893abdb19f0ca170c118f8a2847dbd304be – before ab3bb8cd8be8f9d4acb97da0418abc279182041e
curl curl 8.20.08.19.08.18.08.17.08.16.08.15.08.14.18.14.0

Weakness: CWE-297 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References