# CVE-2026-137979: Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-11-27T15:38:25.257Z
- Modified: 2026-11-30T18:18:45.597Z
- Weaknesses: CWE-337
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Nmap Nmap: before 7.992

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- VulnCheck: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-137979](https://www.cve.org/CVERecord?id=CVE-2026-137979), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-137979](https://nvd.nist.gov/vuln/detail/CVE-2026-137979), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-137979 · Whole record: https://cve.day/CVE-2026-137979.json · Rebuilt by cve.day 2026-11-30T18:32:22.850Z
