CVE-2026-12064 in Curl and 1 more product
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_SHA2...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Curl | Curl | ≥ 7.81.0, < 8.14.2 ≥ 8.15.0, < 8.16.1 ≥ 8.17.0, < 8.20.1 |
| Haxx | Curl | ≥ 7.81.0, < 8.21.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-12064 |
|---|---|
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2026-07-03 |
| Last modified | 2026-09-15 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-295: CWE-295
CWE-297: CWE-297
Related attack patterns (CAPEC)
CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-295
CAPEC-475 Signature Spoofing by Improper Validation via CWE-295
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A unscored severity vulnerability (CVE-2026-12064) affects the target system. 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 ...
Questions
What is CVE-2026-12064?
A unscored severity vulnerability (CVE-2026-12064) affects the target system. 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 ...
What is the CVSS score for CVE-2026-12064?
CVE-2026-12064 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.6%.
Is CVE-2026-12064 actively exploited?
No confirmed active exploitation of CVE-2026-12064 as of 2026-09-25.
How do I remediate CVE-2026-12064?
Advisory: https://curl.se/docs/CVE-2026-12064.html
What systems are affected by CVE-2026-12064?
CVE-2026-12064 affects Curl Curl; Haxx Curl.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Curl","product":"Curl","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-09-15.