CVE-2026-137979

Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed

Published Nov 27, 2026 CVSS 4.0 · 5.3 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Nmap before version 7.992 exposes a heap address through a predictable random seed in the Nmap Scripting Engine. The math.random generator is left unseeded in nse_main.lua, enabling a scanning host to capture random values sent in NSE script traffic during a scripted scan. By brute‑forcing the seed, an attacker can recover a concrete heap address, thereby weakening Address Space Layout Randomization and exposing memory layout information.

Affected Systems

The vulnerability affects the Nmap Nmap product in all releases prior to 7.992. Any host running an unpatched version of Nmap is susceptible when the script engine is active during scripted scans such as -sC.

Risk and Exploitability

The CVSS rating is 5.3, indicating moderate severity, and the EPSS score is not available. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack requires an external attacker to perform a scripted scan against the target host, capture NSE traffic, and brute‑force the random seed. While the risk is moderate, an adversary who can observe NSE traffic can learn memory layout details that could aid further exploitation. No publicly reported exploits exist as of the current data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Nmap to version 7.992 or newer to include the proper seeding of the random generator in NSE scripts.
  • Disable or limit NSE scripted scans (e.g., avoid using -sC or other NSE-based options) on hosts that handle sensitive traffic.
  • Configure network defenses to inspect and block NSE script traffic when possible, and ensure ASLR and other memory protection mechanisms are enabled to reduce the utility of recovered heap addresses.

Generated by OpenCVE AI on November 27, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Nmap before 7.992 Heap Address Disclosure via Predictable NSE Lua Seed
First Time appeared Nmap
Nmap nmap
Weaknesses CWE-337
CPEs cpe:2.3:a:nmap:nmap:*:*:*:*:*:*:*:*
Vendors & Products Nmap
Nmap nmap
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 5.3, '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'}

Weaknesses
  • CWE-337

    Predictable Seed in Pseudo-Random Number Generator (PRNG)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 3:38 PM
Reserved
Nov 27, 2026, 3:30 PM
Status
Received
Published
Nov 27, 2026, 4:18 PM
Modified
Nov 27, 2026, 4:18 PM