CVE-2026-12064
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-07-03
- Last modified
- 2026-09-15
- Assigned by
- 2499f714-1537-4658-8207-48ae4bb9eae9
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Scored by
- 134c704f-9b21-4f2e-91b3-4a467353bcc0
- Probability of exploitation
-
0.3 %
higher than 27 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Haxx | Curl | ≥ 7.81.0, < 8.21.0 | Affected |
Weakness type
-
CWE-295: Improper Certificate Validation
The product does not validate, or incorrectly validates, a certificate.
-
CWE-297: Improper Validation of Certificate with Host Mismatch
The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.
References
- https://curl.se/docs/CVE-2026-12064.html
- https://curl.se/docs/CVE-2026-12064.json
- https://hackerone.com/reports/3797526
- https://hackerone.com/reports/3797526
Related at Berigo
Articles
-
Records are being pulled from Salesforce and ServiceNow portals that need no login
Same product
2026-08-14
Reco is tracking an ongoing campaign it calls City-Forum, in which a single tool written in Go pulls records from customer portals in Salesforce Expe…
-
Fake recruiters talked IT staff into installing a VPN client that ran hidden code
Same product
2026-08-12
CERT-UA describes how the threat cluster UAC-0145 approaches IT professionals on job sites and runs a full hiring process, complete with a Telegram c…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.