CVE-2026-12064
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 package | Versions | Reported by |
|---|---|---|
| curl curl | from 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 more | CVE List |
| https://github.com/curl/curl.git | from 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 ab3bb8cd8be8f9d4acb97da0418abc279182041e | curl |
| haxx curl | from 7.81.0 before 8.21.0 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| curl | low rating |
Classification
References
| https://curl.se/docs/CVE-2026-12064.json | vendor-advisory | |
| https://curl.se/docs/CVE-2026-12064.html | patch, vendor-advisory | |
| https://hackerone.com/reports/3797526 | exploit, issue-tracking, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-12064 changed 2026-09-15 | CVE Terms of Use |
| curl | CURL-CVE-2026-12064 changed 2026-10-25 | MIT |
| NVD | CVE-2026-12064 changed 2026-09-15 | Public domain |