SSH improper host validation in libcurl libssh backend
CVE-2026-9547 is an improper SSH host validation flaw in libcurl affecting SCP:// and SFTP:// transfers when libcurl is built with the libssh backend and the application uses the CURLOPT_SSH_KEYFUNCTION host-key callback. In affected versions, if an SSH server presents a host key type that does not match the specific key type already recorded for that host in known_hosts, libcurl can incorrectly accept the server instead of rejecting the mismatch. This results from the callback path failing to properly enforce host key type restrictions during host verification. The issue affects curl/libcurl versions 7.69.0 through 8.20.0, was introduced by commit 507cf6a13db0375eadd, and was fixed by commit 0b8dbbc63c98777e4584cb9 in 8.21.0. The curl command-line tool is not affected, and builds using libssh2 instead of libssh are not affected.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
An improper host validation vulnerability in curl/libcurl with the libssh backend where SCP/SFTP transfers using a host-key callback could accept a server key type that should have been rejected.
An improper SSH host validation vulnerability in curl/libcurl where rejected server key types may be accepted via the libssh backend.
A curl/libcurl vulnerability described as improper host validation.
A low-severity curl/libcurl vulnerability involving improper SSH host validation.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.