Description
Nmap before 7.992 contains an information disclosure vulnerability in the Nmap Scripting Engine because nse_main.lua does not explicitly seed Lua's math.random generator. Malicious scanned hosts can observe math.random-derived values in NSE script traffic during -sC scans, brute-force the seed, and recover a heap address that weakens ASLR.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Nmap | Nmap | < 7.992 | 7.992 |
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.993+dfsg-1 | — |
| Debian 13 | nmap | No fix yet | — |
| Debian 12 | nmap | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | nmap | No fix yet | — |
| Ubuntu 26.04 LTS | nmap | No fix yet | — |
| Ubuntu 24.04 LTS | nmap | No fix yet | — |
| Ubuntu 22.04 LTS | nmap | No fix yet | — |
| Ubuntu 20.04 LTS | nmap | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| 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 | — |
Advisories 1
- WID-SEC-2026-4878 nmap: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 29, 2026
References
- Patch Commit patch
- https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/nse_main.lua#L892 technical-description
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG release-notes
- https://nmap.org/changelog.html release-notes
- https://github.com/nmap/nmap product
- VulnCheck Advisory: Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed third-party-advisory