Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 27, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 27, 2026
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.
| Product | Versions |
|---|---|
| Nmap Nmap | before 7.992 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 4.3 Medium | VulnCheck |
Weaknesses
- CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)
References
- Patch CommitPatch
- https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/nse_main.lua#L892Technical Details
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOGRelease Notes
- https://nmap.org/changelog.htmlRelease Notes
- https://github.com/nmap/nmapProduct Page
- VulnCheck Advisory: Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua SeedThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.