nse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition due to a double free when an SSH connection fails, as demonstrated by a leading \n character to ssh-brute.nse or ssh-auth-methods.nse.
[
{
"id": "CVE-2017-18594-884d6df0",
"source": "https://github.com/nmap/nmap/commit/350bbe0597d37ad67abe5fef8fba984707b4e9ad",
"digest": {
"length": 602.0,
"function_hash": "181885123553807210789057297674015574442"
},
"signature_version": "v1",
"target": {
"function": "do_session_handshake",
"file": "nse_libssh2.cc"
},
"signature_type": "Function",
"deprecated": false
},
{
"id": "CVE-2017-18594-eec30225",
"source": "https://github.com/nmap/nmap/commit/350bbe0597d37ad67abe5fef8fba984707b4e9ad",
"digest": {
"line_hashes": [
"89047191141271898078379186729701011087",
"288418200066937758181363772380073444813",
"197504247299643829413881507450264840980",
"45853858347866020060594260890860214833",
"230612446715307993172166006795828895723",
"198393754361702321352110806437967051769",
"253764268990083538657657834154227694516",
"49832567131233925307305766627838607310",
"55587154207647647599364397019466709572",
"157468943989143697765082448397421470797",
"301199915657737667528034694382631924465"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "nse_libssh2.cc"
},
"signature_type": "Line",
"deprecated": false
}
]