CVE-2026-12064proto-default skips SSH verification
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | curl | Fixed | 8.18.0-1ubuntu2.3 | UBUNTU-CVE-2026-12064 |
| Ubuntu 25.10 | curl | Fixed | 8.14.1-2ubuntu1.5 | UBUNTU-CVE-2026-12064 |
| Ubuntu 24.04 | curl | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | curl | Not affected vulnerable_code_not_present | ||
| Debian 14 | curl | Fixed | 8.21.0~rc3-1 | DEBIAN-CVE-2026-12064 |
| Debian 13 | curl | Fix pending | DEBIAN-CVE-2026-12064 | |
| Debian 12 | curl | Fix pending | DEBIAN-CVE-2026-12064 | |
| Red Hat Enterprise Linux 10 | curl | Fixed | 0:8.12.1-9.el10_3 | RHSA-2026:55450 |
| Red Hat Enterprise Linux 10 | libcurl | Fixed | 0:8.12.1-9.el10_3 | RHSA-2026:55450 |
| Red Hat Enterprise Linux 10 | libcurl-devel | Fixed | 0:8.12.1-9.el10_3 | RHSA-2026:55450 |
| Red Hat Enterprise Linux 10 | libcurl-minimal | Fixed | 0:8.12.1-9.el10_3 | RHSA-2026:55450 |
| Red Hat Enterprise Linux 9 | curl | Not affected | ||
| Red Hat Enterprise Linux 9 | curl-minimal | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl-minimal | Not affected | ||
| Red Hat Enterprise Linux 8 | curl | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl-minimal | Not affected | ||
| Red Hat Enterprise Linux 7 | curl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | curl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl-devel | Not affected | ||
| AlmaLinux 10 | curl | Fixed | 8.12.1-9.el10_3 | ALSA-2026:100685 |
| AlmaLinux 10 | libcurl | Fixed | 8.12.1-9.el10_3 | ALSA-2026:100685 |
| AlmaLinux 10 | libcurl-devel | Fixed | 8.12.1-9.el10_3 | ALSA-2026:100685 |
| AlmaLinux 10 | libcurl-minimal | Fixed | 8.12.1-9.el10_3 | ALSA-2026:100685 |
| Rocky Linux 10 | curl | Fixed | 0:8.12.1-9.el10_3 | RLSA-2026:100685 |
| Rocky Linux 10 | libcurl | Fixed | 0:8.12.1-9.el10_3 | RLSA-2026:100685 |
| Rocky Linux 10 | libcurl-devel | Fixed | 0:8.12.1-9.el10_3 | RLSA-2026:100685 |
| Rocky Linux 10 | libcurl-minimal | Fixed | 0:8.12.1-9.el10_3 | RLSA-2026:100685 |
| Alpine Linux 3.24 | curl | Fixed | 8.21.0-r0 | ALPINE-CVE-2026-12064 |
| Alpine Linux 3.23 | curl | Fixed | 8.22.0-r0 | ALPINE-CVE-2026-12064 |
What the vendor says
As published in the CVE record by curl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- curl: affected: 7.81.0 to before 8.14.2, 8.15.0 to before 8.16.1, 8.17.0 to before 8.20.1; fixed in
8.14.2,8.16.1,8.20.1 - curl: affected: 18270893abdb19f0ca170c118f8a2847dbd304be to before ab3bb8cd8be8f9d4acb97da0418abc279182041e
- curl: affected: 8.20.0, 8.19.0, 8.18.0, 8.17.0, 8.16.0, 8.15.0
References
- https://curl.se/docs/CVE-2026-12064.json
- https://curl.se/docs/CVE-2026-12064.html
- https://hackerone.com/reports/3797526
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.