Vulnerability · Published Jul 3, 2026 · Assigned by curl

CVE-2026-9547SSH improper host validation

High 7.4

In plain English

A high-severity security flaw in curl from curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)0.4%top 69.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

When a libcurl-based application performs transfers via `SCP://` or `SFTP://` and utilizes the `CURLOPT_SSH_KEYFUNCTION` callback, it may silently accept an untrusted server. This vulnerability occurs when a server presents a host key type that does not match the specific key type already recorded for that host in the `known_hosts` file. Instead of rejecting the mismatch, the callback mechanism fails to properly enforce the restriction, allowing the connection to succeed without warning and risking a potential man-in-the-middle attack.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9curl7.76.1-40.el9_8.5ALSA-2026:55439
AlmaLinux:9curl-minimal7.76.1-40.el9_8.5ALSA-2026:55439
AlmaLinux:9libcurl7.76.1-40.el9_8.5ALSA-2026:55439
AlmaLinux:9libcurl-devel7.76.1-40.el9_8.5ALSA-2026:55439
AlmaLinux:9libcurl-minimal7.76.1-40.el9_8.5ALSA-2026:55439
Alpine:v3.23curl8.22.0-r0ALPINE-CVE-2026-9547
Alpine:v3.24curl8.21.0-r0ALPINE-CVE-2026-9547
Debian:12curlno fix listedDEBIAN-CVE-2026-9547
Debian:13curlno fix listedDEBIAN-CVE-2026-9547
Debian:14curl8.21.0~rc2-1DEBIAN-CVE-2026-9547
Rocky Linux:9curl0:7.76.1-40.el9_8.5RLSA-2026:55439
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.25UBUNTU-CVE-2026-9547
Ubuntu:24.04:LTScurl8.5.0-2ubuntu10.10UBUNTU-CVE-2026-9547
Ubuntu:25.10curl8.14.1-2ubuntu1.4UBUNTU-CVE-2026-9547
Ubuntu:26.04:LTScurl8.18.0-1ubuntu2.2UBUNTU-CVE-2026-9547

Affected products (as reported)

VendorProductVersions
curl curl 7.69.0 – before 8.14.28.15.0 – before 8.16.18.17.0 – before 8.20.1
curl curl 507cf6a13db0375eadd4655b4c64710db29e9cf2 – before 0b8dbbc63c98777e4584cb9fbd71df3464008ad1
curl curl 8.20.08.19.08.18.08.17.08.16.08.15.08.14.18.14.0

Weakness: CWE-297 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

References