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

When the curl command‑line client is invoked with a schemeless URL and the --proto-default option set to sftp or scp, the tool layer incorrectly infers the URL scheme and omits critical SSH host verification options such as CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 and CURLOPT_SSH_KNOWNHOSTS. This causes curl to establish a connection without checking the remote host’s key, allowing a man‑in‑the‑middle attack without raising an error. The flaw is classified as CWE‑358, indicating the removal of vital security controls.

Affected Systems

All versions of the curl command‑line client that support the --proto-default option for sftp or scp and accept schemeless URLs are potentially affected. No specific version ranges are provided in the advisory, so every release that implements this feature should be considered vulnerable until a patch is applied.

Risk and Exploitability

The CVSS score of 7.5 reflects a high severity impact, while the EPSS score of less than 1% indicates a low likelihood of widespread exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to intentionally invoke curl with the vulnerable configuration, which makes automated attacks unlikely. The silent bypass of SSH host verification compromises confidentiality and integrity of data transferred to the remote host.

Generated by OpenCVE AI on July 23, 2026 at 16:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade curl to the latest release that contains the fix.
  • Avoid using --proto-default with sftp or scp when specifying schemeless URLs; use explicit scheme syntax such as sftp:// or scp:// instead.
  • If upgrading is not immediately possible, ensure that the SSH server uses a strong, well‑maintained key and that the client’s known‑hosts file is properly populated to reduce risk in case the bypass persists.

Generated by OpenCVE AI on July 23, 2026 at 16:28 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

No data.

cve-icon Redhat

Severity : Important

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

Links: CVE-2026-12064 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T16:30:09Z

Weaknesses
  • CWE-358

    Improperly Implemented Security Check for Standard