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.
Published: 2026-07-03
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Curl misinterprets a schemeless URL when the --proto-default option is set to sftp or scp, causing the tool layer to omit critical SSH security options, an improper certificate validation (CWE-295) that bypasses the expected SSH host verification. The result is a connection to a remote host without performing host key verification, which means a man‑in‑the‑middle attacker could intercept or alter the transferred data. The potential for such an attack is inferred from the fact that the client silently suppresses key verification, rather than from explicit exploit evidence in the advisory.

Affected Systems

All builds of curl that implement the --proto-default option for sftp or scp and accept schemeless URLs are vulnerable. Because no specific version ranges are listed, any current release supporting this feature should be treated as at risk until the fix is applied.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity vulnerability. This is an improper certificate validation (CWE-295) failure that allows a man‑in‑the‑middle attack by bypassing SSH host verification. The EPSS score of less than 1% shows a low likelihood of widespread exploitation. As the issue is not listed in the CISA KEV catalog, it is not known to be actively exploited. Exploitation requires an attacker to provide or control the remote SSH host, allowing a man‑in‑the‑middle or similar attack if the user does not see a verification failure.

Generated by OpenCVE AI on August 12, 2026 at 00:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade curl to the latest release that includes the fix for the --proto-default bug.
  • Avoid using --proto-default with scheme‑less URLs for sftp or scp; instead specify an explicit scheme such as sftp:// or scp://.
  • If an upgrade cannot be performed immediately, do not use the affected mode; enforce host key verification by configuring the SSH client separately or by preventing the use of insecure connections.

Generated by OpenCVE AI on August 12, 2026 at 00:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8525-1 curl vulnerabilities
History

Tue, 07 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-760

Tue, 07 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-358
References
Metrics threat_severity

None

threat_severity

Important


Mon, 06 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-760
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287

Mon, 06 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287

Sun, 05 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287

Sat, 04 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287

Sat, 04 Jul 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287

Fri, 03 Jul 2026 10:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287

Fri, 03 Jul 2026 07:45:00 +0000

Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl

Fri, 03 Jul 2026 06:45:00 +0000

Type Values Removed Values Added
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.
Title proto-default skips SSH verification
References

cve-icon MITRE

Status: PUBLISHED

Assigner: curl

Published:

Updated: 2026-07-06T18:21:00.665Z

Reserved: 2026-06-12T07:23:29.455Z

Link: CVE-2026-12064

cve-icon Vulnrichment

Updated: 2026-07-06T18:20:42.959Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-03T07:16:24.217

Modified: 2026-07-07T19:43:11.187

Link: CVE-2026-12064

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-03T06:13:55Z

Links: CVE-2026-12064 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T00:30:03Z

Weaknesses
  • CWE-295

    Improper Certificate Validation

  • CWE-358

    Improperly Implemented Security Check for Standard