proto-default skips SSH verification

Summary

CVECVE-2026-12064
StatePUBLISHED
Assignercurl
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-03 07:16:24 UTC
Updated2026-07-03 07:16:24 UTC
DescriptionWhen 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.

Risk And Classification

Problem Types: CWE-297 Improper Validation of Certificate with Host Mismatch

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Curl Curl affected 8.20.0 8.20.0 semver Not specified
CNA Curl Curl affected 8.19.0 8.19.0 semver Not specified
CNA Curl Curl affected 8.18.0 8.18.0 semver Not specified
CNA Curl Curl affected 8.17.0 8.17.0 semver Not specified
CNA Curl Curl affected 8.16.0 8.16.0 semver Not specified
CNA Curl Curl affected 8.15.0 8.15.0 semver Not specified
CNA Curl Curl affected 8.14.1 8.14.1 semver Not specified
CNA Curl Curl affected 8.14.0 8.14.0 semver Not specified
CNA Curl Curl affected 8.13.0 8.13.0 semver Not specified
CNA Curl Curl affected 8.12.1 8.12.1 semver Not specified
CNA Curl Curl affected 8.12.0 8.12.0 semver Not specified
CNA Curl Curl affected 8.11.1 8.11.1 semver Not specified
CNA Curl Curl affected 8.11.0 8.11.0 semver Not specified
CNA Curl Curl affected 8.10.1 8.10.1 semver Not specified
CNA Curl Curl affected 8.10.0 8.10.0 semver Not specified
CNA Curl Curl affected 8.9.1 8.9.1 semver Not specified
CNA Curl Curl affected 8.9.0 8.9.0 semver Not specified
CNA Curl Curl affected 8.8.0 8.8.0 semver Not specified
CNA Curl Curl affected 8.7.1 8.7.1 semver Not specified
CNA Curl Curl affected 8.7.0 8.7.0 semver Not specified
CNA Curl Curl affected 8.6.0 8.6.0 semver Not specified
CNA Curl Curl affected 8.5.0 8.5.0 semver Not specified
CNA Curl Curl affected 8.4.0 8.4.0 semver Not specified
CNA Curl Curl affected 8.3.0 8.3.0 semver Not specified
CNA Curl Curl affected 8.2.1 8.2.1 semver Not specified
CNA Curl Curl affected 8.2.0 8.2.0 semver Not specified
CNA Curl Curl affected 8.1.2 8.1.2 semver Not specified
CNA Curl Curl affected 8.1.1 8.1.1 semver Not specified
CNA Curl Curl affected 8.1.0 8.1.0 semver Not specified
CNA Curl Curl affected 8.0.1 8.0.1 semver Not specified
CNA Curl Curl affected 8.0.0 8.0.0 semver Not specified
CNA Curl Curl affected 7.88.1 7.88.1 semver Not specified
CNA Curl Curl affected 7.88.0 7.88.0 semver Not specified
CNA Curl Curl affected 7.87.0 7.87.0 semver Not specified
CNA Curl Curl affected 7.86.0 7.86.0 semver Not specified
CNA Curl Curl affected 7.85.0 7.85.0 semver Not specified
CNA Curl Curl affected 7.84.0 7.84.0 semver Not specified
CNA Curl Curl affected 7.83.1 7.83.1 semver Not specified
CNA Curl Curl affected 7.83.0 7.83.0 semver Not specified
CNA Curl Curl affected 7.82.0 7.82.0 semver Not specified
CNA Curl Curl affected 7.81.0 7.81.0 semver Not specified

References

ReferenceSourceLinkTags
hackerone.com/reports/3797526 2499f714-1537-4658-8207-48ae4bb9eae9 hackerone.com
curl.se/docs/CVE-2026-12064.html 2499f714-1537-4658-8207-48ae4bb9eae9 curl.se
curl.se/docs/CVE-2026-12064.json 2499f714-1537-4658-8207-48ae4bb9eae9 curl.se
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: alienowo on hackerone (AntAISecurityLab) (en)

CNA: Daniel Stenberg (en)

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report