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.
{
"cna_assigner": "curl",
"cwe_ids": [
"CWE-297"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/9xxx/CVE-2026-9547.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-9547.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "171591672620915120098914005398439744356",
"length": 4615
},
"id": "CVE-2026-9547-e5ddacc0",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/curl/curl.git/commit/0b8dbbc63c98777e4584cb9fbd71df3464008ad1",
"target": {
"file": "lib/vssh/libssh.c",
"function": "myssh_is_known"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"19522727956082994505377891717732253881",
"17505745399782688697084999810884215111",
"65466782891270922555303879365870593631",
"39998244195617753293703183793609467932"
],
"threshold": 0.9
},
"id": "CVE-2026-9547-ffd5c5b3",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/curl/curl.git/commit/0b8dbbc63c98777e4584cb9fbd71df3464008ad1",
"target": {
"file": "lib/vssh/libssh.c"
}
}
]
"2026-10-08T07:15:44Z"