{"id":"CVE-2017-18594","aliases":["ALPINE-CVE-2017-18594","DEBIAN-CVE-2017-18594","EUVD-2017-9707","GHSA-mh4c-hqr8-mc3f","MGASA-2020-0216","SUSE-SU-2019:2425-1","SUSE-SU-2019:2425-2","UBUNTU-CVE-2017-18594","openSUSE-SU-2019:2198-1","openSUSE-SU-2019:2200-1","openSUSE-SU-2024:11750-1"],"status":"published","title":"nse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition due to a double free when...","description":"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.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.03164,"percentile":0.88082,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415"],"published":"2019-08-28T23:50:22Z","modified":"2026-10-20T13:37:09Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"nmap","fixed_in":["7.70-r4"],"sources":["osv"]},{"ecosystem":"Alpine:v3.11","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"nmap","fixed_in":["7.80-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.7","package":"nmap","fixed_in":["7.60-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.8","package":"nmap","fixed_in":["7.70-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.9","package":"nmap","fixed_in":["7.70-r4"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"nmap","fixed_in":["7.80+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"nmap","fixed_in":["7.80+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"nmap","fixed_in":["7.80+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Mageia:7","package":"nmap","fixed_in":["7.70-2.2.mga7"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"nmap","fixed_in":["7.92-4.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-r4"}]}]},{"source":"osv","ecosystem":"Alpine:v3.11","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.7","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.60-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.8","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.9","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-r4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.80+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-2.2.mga7"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-3.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP1","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-3.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-3.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP2","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-3.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP1","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-3.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP2","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-3.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.40-0.1ubuntu1","6.40-0.2ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.47-7","7.01-2ubuntu1","7.01-2ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.60-1ubuntu1","7.60-1ubuntu2","7.60-1ubuntu3","7.60-1ubuntu4","7.60-1ubuntu5"]},{"source":"osv","ecosystem":"openSUSE:Leap 15.0","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-lp150.2.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.1","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.70-lp151.3.9.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.92-4.1"}]}]}],"products":[{"vendor":"nmap","product":"nmap"}],"references":[{"url":"https://seclists.org/nmap-dev/2018/q2/45","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"https://github.com/nmap/nmap/issues/1227","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://github.com/nmap/nmap/commit/350bbe0597d37ad67abe5fef8fba984707b4e9ad","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/nmap/nmap/issues/1077","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/AMatchandaHaystack/Research/blob/master/Nmap%26libsshDF","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://seclists.org/nmap-announce/2019/0","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory","report"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00073.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00075.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-18594"},{"url":"https://github.com/advisories/GHSA-mh4c-hqr8-mc3f"},{"url":"https://security.alpinelinux.org/vuln/CVE-2017-18594","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-18594","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2020-0216.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=25770","tags":["report"]},{"url":"https://github.com/nmap/nmap/commit/3b8b6516a7697d8b6d4cd87e253daa369fcdbf2a","tags":["web"]},{"url":"https://lists.opensuse.org/opensuse-updates/2019-09/msg00156.html","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20192425-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1135350","tags":["report"]},{"url":"https://bugzilla.suse.com/1148742","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2017-18594","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-15173","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20192425-2/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-18594","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-18594","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VUNKFOGQTN5AMFYPDWGM7FZRRQTMWEKH/#VUNKFOGQTN5AMFYPDWGM7FZRRQTMWEKH","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/QH6AWULXISQ4CGTZ5RSPEKBLMWHOAMFF/#QH6AWULXISQ4CGTZ5RSPEKBLMWHOAMFF","tags":["advisory"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-18594","description":"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.","status":"published","published":"2019-08-28T23:50:22Z","modified":"2024-08-05T21:28:55.571Z","updated_at":"2026-11-02T14:33:22.064284Z"}],"euvd":[{"id":"EUVD-2017-9707","description":"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.","status":"published","published":"2019-08-28T23:50:22Z","modified":"2024-08-05T21:28:55Z","updated_at":"2026-11-03T02:23:06.03875Z"}],"ghsa":[{"id":"GHSA-mh4c-hqr8-mc3f","title":"nse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition due to a double free when...","description":"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.","status":"published","published":"2022-05-24T16:55:05Z","modified":"2024-04-04T01:50:25Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:56:03.407648Z"}],"nvd":[{"id":"CVE-2017-18594","description":"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.","status":"published","published":"2019-08-29T00:15:10.467Z","modified":"2026-06-17T01:13:09.73Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:04:20.074898Z"}],"osv":[{"id":"ALPINE-CVE-2017-18594","description":"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.","status":"published","published":"2019-08-29T00:15:10.467Z","modified":"2026-06-15T18:18:06.790982314Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:46.716249Z"},{"id":"CVE-2017-18594","description":"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.","status":"published","published":"2019-08-29T00:15:10.467Z","modified":"2026-10-20T13:37:09.469980626Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:05.486486Z"},{"id":"DEBIAN-CVE-2017-18594","description":"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.","status":"published","published":"2019-08-29T00:15:10.467Z","modified":"2026-09-01T20:03:47.20772357Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.100767Z"},{"id":"UBUNTU-CVE-2017-18594","description":"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.","status":"published","published":"2019-08-29T00:15:00Z","modified":"2025-10-24T04:46:40Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:14.977781Z"},{"id":"MGASA-2020-0216","title":"Updated nmap packages fix security vulnerability","description":"Updated nmap packages fix security vulnerability:\n\nnse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition\ndue to a double free when an SSH connection fails, as demonstrated by a\nleading \\n character to ssh-brute.nse or ssh-auth-methods.nse\n(CVE-2017-18594).\n\nAlso, when a server forced a protocol and did not return TLS ALPN extension,\nthis caused an infinite loop.\n","status":"published","published":"2020-05-24T18:04:47Z","modified":"2026-04-16T04:43:27.416233023Z","updated_at":"2026-11-02T15:49:41.151324Z"},{"id":"openSUSE-SU-2019:2198-1","title":"Security update for nmap","description":"This update for nmap fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2017-18594: Fixed a denial of service condition due to a double free when an SSH connection fails. (bsc#1148742)\n\nNon-security issue fixed:\n\n- Fixed a regression in the version scanner caused, by the fix for CVE-2018-15173. (bsc#1135350)\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2019-09-26T04:19:00Z","modified":"2026-02-04T03:18:47.197536Z","updated_at":"2026-11-02T16:58:30.784344Z"},{"id":"openSUSE-SU-2019:2200-1","title":"Security update for nmap","description":"This update for nmap fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2017-18594: Fixed a denial of service condition due to a double free when an SSH connection fails. (bsc#1148742)\n\nNon-security issue fixed:\n\n- Fixed a regression in the version scanner caused, by the fix for CVE-2018-15173. (bsc#1135350)\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2019-09-26T04:19:17Z","modified":"2026-02-04T04:03:51.411895Z","updated_at":"2026-11-02T16:58:30.784344Z"},{"id":"openSUSE-SU-2024:11750-1","title":"ncat-7.92-4.1 on GA media","description":"These are all security issues fixed in the ncat-7.92-4.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:34:32.430444Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2019:2425-1","title":"Security update for nmap","description":"This update for nmap fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2017-18594: Fixed a denial of service condition due to a double free when an SSH connection fails. (bsc#1148742)\n\nNon-security issue fixed:\n\n- Fixed a regression in the version scanner caused, by the fix for CVE-2018-15173. (bsc#1135350)\n","status":"published","published":"2019-09-20T16:48:31Z","modified":"2026-02-04T04:37:11.475216Z","updated_at":"2026-11-02T15:53:46.44301Z"},{"id":"SUSE-SU-2019:2425-2","title":"Security update for nmap","description":"This update for nmap fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2017-18594: Fixed a denial of service condition due to a double free when an SSH connection fails. (bsc#1148742)\n\nNon-security issue fixed:\n\n- Fixed a regression in the version scanner caused, by the fix for CVE-2018-15173. (bsc#1135350)\n","status":"published","published":"2020-07-08T07:53:05Z","modified":"2026-02-04T03:11:29.63695Z","updated_at":"2026-11-02T15:53:46.44301Z"}]}}
