CVE-2026-137979
Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed
Medium · 5.3Fix available
- CVSS
- 5.3
- EPSS
- —
- Published
- 2026-11-27
- Age
- 24h old
- Modified
- 2026-11-27
- Product
- Nmap Nmap
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
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.
Fixed in
7.992
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Nmap | >=0, <7.992 | 7.992 |
Sources
References
- https://github.com/nmap/nmap/commit/6aaada8c53425c6c390335f38d90184d04f1dae4 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
- https://www.vulncheck.com/advisories/nmap-before-7.992-heap-address-disclosure-via-predictable-nse-lua-seed third-party-advisory