Improper validation of certificate with host mismatch in cURL - CVE-2026-12064

 

Improper validation of certificate with host mismatch in cURL - CVE-2026-12064

Published: June 24, 2026


Vulnerability identifier: #VU135080
CSH Severity: Medium
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-12064
CWE-ID: CWE-297
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to connect to an unverified SSH remote host.

The vulnerability exists due to improper validation of certificate with host mismatch in the curl command line tool when processing a schemeless URL combined with --proto-default for sftp or scp. A remote attacker can present an SSH server in that connection flow to connect to an unverified SSH remote host.

This issue affects only the curl command line tool and does not affect other users of libcurl or the libcurl library itself.


Affected software

cURL
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Ubuntu
Basesystem Module
openSUSE Leap
LANTIME Operating System Firmware (LTOS)
curl (Ubuntu package)
libcurl4-64bit-debuginfo
libcurl-mini4-debuginfo
libcurl-mini4
curl-mini-debugsource
curl
curl-debugsource
libcurl4-debuginfo
libcurl-devel
curl-debuginfo
libcurl4
libcurl4-32bit
libcurl4-32bit-debuginfo
libcurl-devel-64bit
libcurl4-64bit
curl-fish-completion
libcurl-devel-doc
curl-zsh-completion
libcurl-devel-32bit

How to mitigate CVE-2026-12064

Install security update from vendor's website.

cURL - update to 8.21.0
LANTIME Operating System Firmware (LTOS) - update to 7.10.013
curl (Ubuntu package) - addressed in versions 7.35.0-1ubuntu2.20+esm21, 7.47.0-1ubuntu2.19+esm17, 7.58.0-2ubuntu3.24+esm10, 7.68.0-1ubuntu2.25+esm5, 8.5.0-2ubuntu10.11, 8.14.1-2ubuntu1.5, 8.18.0-1ubuntu2.3
libcurl4-64bit-debuginfo - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
libcurl-mini4-debuginfo - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
libcurl-mini4 - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
curl-mini-debugsource - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
curl - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
curl-debugsource - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
libcurl4-debuginfo - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
libcurl-devel - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
curl-debuginfo - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
libcurl4 - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
libcurl4-32bit - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
libcurl4-32bit-debuginfo - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1, 8.14.1-150700.7.20.1
libcurl-devel-64bit - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
libcurl4-64bit - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
curl-fish-completion - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
libcurl-devel-doc - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
curl-zsh-completion - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1
libcurl-devel-32bit - addressed in versions 8.14.1-150400.5.86.1, 8.14.1-150600.4.46.1

External References

Related Security Bulletins