CVE-2026-12064
Severity CVSS v4.0:
Pending analysis
Type:
CWE-295
Improper Certificate Validation
Publication date:
03/07/2026
Last modified:
07/07/2026
Description
When a user invokes curl using a schemeless URL combined with<br />
`--proto-default` sftp (or scp), a disconnect occurs between the tool layer<br />
and libcurl. The tool layer incorrectly infers the URL scheme, which<br />
erroneously bypasses the initialization of critical SSH security options like<br />
CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 and CURLOPT_SSH_KNOWNHOSTS. Conversely, the<br />
libcurl runtime successfully honors CURLOPT_DEFAULT_PROTOCOL and establishes<br />
the connection via SFTP/SCP as specified. Because the tool layer skipped the<br />
security configuration, these SSH host verification options are silently<br />
omitted, causing curl to connect to an unverified SSH remote host without<br />
throwing an error.
Impact
Base Score 3.x
7.50
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* | 7.81.0 (including) | 8.21.0 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



