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.
{
"severity": "Low",
"award": {
"currency": "USD",
"amount": "505"
},
"URL": "https://curl.se/docs/CVE-2025-15079.json",
"last_affected": "8.17.0",
"affects": "both",
"package": "curl",
"www": "https://curl.se/docs/CVE-2025-15079.html",
"CWE": {
"desc": "Improper Validation of Certificate with Host Mismatch",
"id": "CWE-297"
},
"issue": "https://hackerone.com/reports/3477116"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"154575153157544741194860835334875511962",
"309481514725220947052872221583547583347",
"254045176640521679480925776028254756608",
"140624623419491185855662600675706734772"
]
},
"id": "CURL-CVE-2025-15079-2a01c048",
"source": "https://github.com/curl/curl.git/commit/adca486c125d9a6d9565b9607a19dce803a8b479",
"signature_type": "Line",
"target": {
"file": "lib/vssh/libssh.c"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"length": 2963.0,
"function_hash": "179759690000595925597507395316046644025"
},
"id": "CURL-CVE-2025-15079-95faa990",
"source": "https://github.com/curl/curl.git/commit/adca486c125d9a6d9565b9607a19dce803a8b479",
"signature_type": "Function",
"target": {
"file": "lib/vssh/libssh.c",
"function": "myssh_connect"
},
"signature_version": "v1",
"deprecated": false
}
]
"https://curl.se/docs/CURL-CVE-2025-15079.json"