CVE-2026-137979 PUBLISHED

Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed

Assigner: VulnCheck
Reserved: 27.11.2026 Published: 27.11.2026 Updated: 27.11.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 5.3

Product Status

Vendor Nmap
Product Nmap
Versions Default: unaffected
  • affected from 0 to 7.992 (excl.)

Credits

  • Zach Hanley (Horizon3.ai) finder
  • Daniel Miller remediation developer

References

Problem Types

  • CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG) CWE