{"id":"UBUNTU-CVE-2017-18594","details":"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.","modified":"2025-10-24T04:46:40Z","published":"2019-08-29T00:15:00Z","upstream":["CVE-2017-18594"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-18594"},{"type":"REPORT","url":"https://github.com/AMatchandaHaystack/Research/blob/master/Nmap%26libsshDF"},{"type":"REPORT","url":"https://seclists.org/nmap-announce/2019/0"},{"type":"REPORT","url":"https://seclists.org/nmap-dev/2018/q2/45"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-18594"}],"affected":[{"package":{"name":"nmap","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/nmap@6.40-0.2ubuntu1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.40-0.1ubuntu1","6.40-0.2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"nmap","binary_version":"6.40-0.2ubuntu1"},{"binary_name":"zenmap","binary_version":"6.40-0.2ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18594.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nmap@7.01-2ubuntu2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.47-7","7.01-2ubuntu1","7.01-2ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"ndiff","binary_version":"7.01-2ubuntu2"},{"binary_name":"nmap","binary_version":"7.01-2ubuntu2"},{"binary_name":"zenmap","binary_version":"7.01-2ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18594.json"}},{"package":{"name":"nmap","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nmap@7.60-1ubuntu5?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.60-1ubuntu1","7.60-1ubuntu2","7.60-1ubuntu3","7.60-1ubuntu4","7.60-1ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_name":"ndiff","binary_version":"7.60-1ubuntu5"},{"binary_name":"nmap","binary_version":"7.60-1ubuntu5"},{"binary_name":"zenmap","binary_version":"7.60-1ubuntu5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18594.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}