Nmap before 7.992 contains an information disclosure vulnerability in the Nmap Scripting Engine because nse_main.lua
Source GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 7.992 when convenient.
Data as of 27 Nov 2026, 20:13 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 4.3 |
- Patch
- Available – fixed in 7.992
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade Nmap to 7.992.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| NmapNmap | Affected
| Fixed in
|
GitHubNmappkg:github/NmapOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, users should be aware of the risk when performing scans with default NSE scripts (-sC) against potentially malicious hosts.
Description
Nmap versions prior to 7.992 have an information disclosure vulnerability in the Nmap Scripting Engine (NSE). The issue arises because the nse_main.lua script does not explicitly seed Lua's math.random generator. This allows malicious scanned hosts to observe values derived from math.random during default script (-sC) scans, enabling them to brute-force the seed and recover a heap address. This leakage weakens Address Space Layout Randomization (ASLR) protections.
References
- nvd.nist.gov/vuln/detail/CVE-2026-137979 (opens in a new tab)
- github.com/nmap/nmap/commit/6aaada8c53425c6c390335f38d90184d04f1dae4 (opens in a new tab)
- github.com/nmap/nmap (opens in a new tab)
- github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/nse_main.lua (opens in a new tab)
- github.com/nmap/nmap/blob/v7.992/CHANGELOG (opens in a new tab)
- nmap.org/changelog.html (opens in a new tab)
- vulncheck.com/advisories/nmap-before-7.992-heap-address-disclosure-via-predictable-nse-lua-seed (opens in a new tab)