CVE-2026-12064CWE-295CWE-297

CVE-2026-12064

High · published July 3, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
33.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00399 · 33.0th percentile
Weaknesses
CWE-295 · Improper Certificate Validation; CWE-297 · Improper Validation of Certificate with Host Mismatch
Published
2026-07-03T11:16Z
Affected products (1)
ProductVersionsFixed in
haxx/curl≥ 7.81.0, < 8.21.08.21.0
References (4)
EPSS history
Timeline
  • 03 JUL 06:13Z
    proto-default skips SSH verification
    cvelistv5