CVE-2026-137979: Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed
Nmap before 7.992 contains an information disclosure vulnerability in the Nmap Scripting Engine because nsemain.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 Software
Event History
Frequently Asked Questions
Which scanning scenarios are exposed?
Nmap installations before 7.992 are exposed when performing -sC scans. A malicious host being scanned can observe math.random-derived values in NSE script traffic.
What does an attacker need to exploit this issue?
The attacker needs to operate or control a host that is scanned with Nmap's -sC option. They must observe the relevant NSE script traffic and brute-force the predictable Lua random-generator seed.
What can be done if updating is not immediately possible?
Avoid using -sC scans against untrusted or potentially malicious hosts until Nmap can be updated. The described disclosure depends on NSE script traffic generated during such scans.
How can I determine whether my installation is affected?
Check the installed Nmap version. Versions before 7.992 are affected; version 7.992 is identified as the fixed release.