CVE-2026-12064
JSON

7.5high

proto-default skips SSH verification

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
curl
Also known as
CURL-CVE-2026-12064

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

Product or packageVersionsReported by
curl curlfrom 7.81.0 before 8.14.2, from 8.15.0 before 8.16.1, from 8.17.0 before 8.20.1, from 18270893abdb19f0ca170c118f8a2847dbd304be before ab3bb8cd8be8f9d4acb97da0418abc279182041e, 8.20.0, 8.19.0, 8.18.0, 8.17.0 and 37 moreCVE List
https://github.com/curl/curl.gitfrom 7.81.0 before 8.14.2, from 8.15.0 before 8.16.1, from 8.17.0 before 8.20.1, from 8.21.0 before 8.21.0, from 18270893abdb19f0ca170c118f8a2847dbd304be before ab3bb8cd8be8f9d4acb97da0418abc279182041ecurl
haxx curlfrom 7.81.0 before 8.21.0NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
curllow rating

Classification

CWE-295CWE-297

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

References

https://curl.se/docs/CVE-2026-12064.jsonvendor-advisory
https://curl.se/docs/CVE-2026-12064.htmlpatch, vendor-advisory
https://hackerone.com/reports/3797526exploit, issue-tracking, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-12064 changed 2026-09-15CVE Terms of Use
curlCURL-CVE-2026-12064 changed 2026-10-25MIT
NVDCVE-2026-12064 changed 2026-09-15Public domain