When doing SSH-based transfers using either SCP or SFTP, and setting the knownhosts file, libcurl could still mistakenly accept connecting to hosts *not present* in the specified file if they were added as recognized in the libssh *global* knownhosts file.
{
"CWE": {
"id": "CWE-297",
"desc": "Improper Validation of Certificate with Host Mismatch"
},
"www": "https://curl.se/docs/CVE-2025-15079.html",
"severity": "Low",
"URL": "https://curl.se/docs/CVE-2025-15079.json",
"issue": "https://hackerone.com/reports/3477116",
"affects": "both",
"award": {
"currency": "USD",
"amount": "505"
},
"package": "curl",
"last_affected": "8.17.0"
}"https://curl.se/docs/CURL-CVE-2025-15079.json"
[
{
"deprecated": false,
"id": "CURL-CVE-2025-15079-2a01c048",
"digest": {
"threshold": 0.9,
"line_hashes": [
"154575153157544741194860835334875511962",
"309481514725220947052872221583547583347",
"254045176640521679480925776028254756608",
"140624623419491185855662600675706734772"
]
},
"source": "https://github.com/curl/curl.git/commit/adca486c125d9a6d9565b9607a19dce803a8b479",
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "lib/vssh/libssh.c"
}
},
{
"deprecated": false,
"id": "CURL-CVE-2025-15079-95faa990",
"digest": {
"length": 2963.0,
"function_hash": "179759690000595925597507395316046644025"
},
"source": "https://github.com/curl/curl.git/commit/adca486c125d9a6d9565b9607a19dce803a8b479",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "lib/vssh/libssh.c",
"function": "myssh_connect"
}
}
]