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

Published Jul 3, 2026
·
Updated

Last updated 10 July 2026

Other sources

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 CURLOPTSSHHOSTPUBLICKEYSHA256 and CURLOPTSSHKNOWNHOSTS. Conversely, the libcurl runtime successfully honors CURLOPTDEFAULTPROTOCOL 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.

MITRE

Affected Software

4 affected componentsFixes available
curl curl
haxx curl>=7.81.0<8.21.0
debian/curl<=7.74.0-1.3+deb11u13, <=7.74.0-1.3+deb11u16, <=7.88.1-10+deb12u14, <=7.88.1-10+deb12u5, <=8.14.1-2+deb13u3, <=8.20.0-5
8.21.0-2
Microsoft azl3 curl 8.11.1-9<8.11.1-10
8.11.1-10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 8.21.0-2
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.11.1-10

Event History

Jul 3, 2026
CVE Published
via MITRE·06:13 AM
Data Sourced
via MITRE·06:13 AM
DescriptionWeakness
Data Sourced
via NVD·07:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 4, 2026
Data Sourced
via Microsoft·08:06 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:06 AM
DescriptionSeverity
Jul 9, 2026
Data Sourced
via Debian·09:52 PM
DescriptionAffected Software
Data Sourced
via Launchpad·09:52 PM
Description
Jul 11, 2026
Data Sourced
via Ubuntu·09:54 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-12064?

CVE-2026-12064 has a severity rating of high, with a CVSS score of 7.5.

2

What are the potential risks associated with CVE-2026-12064?

The primary risk of CVE-2026-12064 involves bypassing critical SSH security options, potentially exposing users to security vulnerabilities.

3

How can I mitigate CVE-2026-12064?

To mitigate CVE-2026-12064, avoid using schemeless URLs with the --proto-default option for sftp or scp until a patch is released.

4

Is CVE-2026-12064 exploitable remotely?

Yes, CVE-2026-12064 can be exploited remotely due to the nature of how curl handles schemeless URLs.

5

Which software is affected by CVE-2026-12064?

CVE-2026-12064 affects the curl command-line tool and its underlying libcurl library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203