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"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.69.0"
},
{
"fixed": "8.21.0"
}
],
"source": "CPE_RANGE"
}
]
}
{
"extracted_events": [
{
"range": [
{
"introduced": "507cf6a13db0375eadd4655b4c64710db29e9cf2"
},
{
"fixed": "0b8dbbc63c98777e4584cb9fbd71df3464008ad1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}