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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nmap | 7.80+dfsg1-1 | — |
| Debian 13 | nmap | 7.80+dfsg1-1 | — |
| Debian 12 | nmap | 7.80+dfsg1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | nmap | No fix yet | — |
| Ubuntu 16.04 LTS | nmap | No fix yet | — |
| Ubuntu 14.04 LTS | nmap | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | nmap | 7.70-3.12.1 | SUSE-SU-2019:2425-2 |
| SLES 15 SP1 | nmap | 7.70-3.12.1 | SUSE-SU-2019:2425-2, SUSE-SU-2019:2425-1 |
| SLES 15 | nmap | 7.70-3.12.1 | SUSE-SU-2019:2425-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | nmap | 7.92-4.1 | openSUSE-SU-2024:11750-1 |
| openSUSE Leap 15.1 | nmap | 7.70-lp151.3.9.1 | openSUSE-SU-2019:2200-1 |
| openSUSE Leap 15.0 | nmap | 7.70-lp150.2.9.1 | openSUSE-SU-2019:2198-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nmap | 7.80-r0 | — |
| Alpine v3.23 | nmap | 7.80-r0 | — |
| Alpine v3.22 | nmap | 7.80-r0 | — |
| Alpine v3.21 | nmap | 7.80-r0 | — |
| Alpine v3.20 | nmap | 7.80-r0 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | nmap | 7.80-r0 | — |
| Alpine v3.18 | nmap | 7.80-r0 | — |
| Alpine v3.17 | nmap | 7.80-r0 | — |
| Alpine v3.16 | nmap | 7.80-r0 | — |
| Alpine v3.15 | nmap | 7.80-r0 | — |
| Alpine v3.14 | nmap | 7.80-r0 | — |
| Alpine v3.13 | nmap | 7.80-r0 | — |
| Alpine v3.12 | nmap | 7.80-r0 | — |
| Alpine v3.11 | nmap | 7.80-r0 | — |
| Alpine v3.10 | nmap | 7.70-r4 | — |
| Alpine v3.9 | nmap | 7.70-r4 | — |
| Alpine v3.8 | nmap | 7.70-r2 | — |
| Alpine v3.7 | nmap | 7.60-r3 | — |
Advisories 5
- SUSE-SU-2019:2425-1 Security update for nmap SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:2200-1 Security update for nmap SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11750-1 ncat-7.92-4.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:2198-1 Security update for nmap SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2425-2 Security update for nmap SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://seclists.org/nmap-dev/2018/q2/45
- https://github.com/nmap/nmap/issues/1227
- https://github.com/nmap/nmap/commit/350bbe0597d37ad67abe5fef8fba984707b4e9ad
- https://github.com/nmap/nmap/issues/1077
- https://github.com/AMatchandaHaystack/Research/blob/master/Nmap%26libsshDF
- https://seclists.org/nmap-announce/2019/0
- openSUSE-SU-2019:2198 vendor-advisory
- openSUSE-SU-2019:2200 vendor-advisory