# CVE-2026-12064: proto-default skips SSH verification

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-24T08:00:00.000Z
- Modified: 2026-10-25T01:05:22.532Z
- Also known as: CURL-CVE-2026-12064
- Weaknesses: CWE-295, CWE-297
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: curl

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

(As written by CVE List.)

## Affected

- 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; 8.16.0; 8.15.0; 8.14.1; 8.14.0; and 33 more
- 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
- haxx curl: from 7.81.0 before 8.21.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- curl: rating Low

## References

- <https://hackerone.com/reports/3797526> (exploit, issue-tracking, third-party-advisory)
- <https://curl.se/docs/CVE-2026-12064.json> (vendor-advisory)
- <https://curl.se/docs/CVE-2026-12064.html> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2026-12064](https://www.cve.org/CVERecord?id=CVE-2026-12064), CVE Terms of Use, modified 2026-09-15
- curl: [CURL-CVE-2026-12064](https://osv.dev/vulnerability/CURL-CVE-2026-12064), MIT, modified 2026-10-25
- NVD: [CVE-2026-12064](https://nvd.nist.gov/vuln/detail/CVE-2026-12064), Public domain, modified 2026-09-15

---

Page: https://cve.day/CVE-2026-12064 · Whole record: https://cve.day/CVE-2026-12064.json · Rebuilt by cve.day 2026-11-25T22:59:27.076Z
