CVE-2026-137979
published medium CVSS 4.0 · 5.3Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Nmap | — | Nmap0 to < 7.992 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.3 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Nmap | Nmap | 0 to < 7.992 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-337 CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)
References
6- https://github.com/nmap/nmap
- https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/nse_main.lua#L892
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG
- Patch Commit https://github.com/nmap/nmap/commit/6aaada8c53425c6c390335f38d90184d04f1dae4
- https://nmap.org/changelog.html
- VulnCheck Advisory: Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed https://www.vulncheck.com/advisories/nmap-before-7.992-heap-address-disclosure-via-predictable-nse-lua-seed
Provider assertions
2VulnCheck · cna
Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f0b1edca73264500fc81722fc63f4b721d96ee0cccd50c6e93e21155cabf02ec
- Ingested
- 30 Nov 2026, 18:37:20 UTC
- Source record
- Official CVE record