CVE-2026-137979

medium

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.

References

https://www.vulncheck.com/advisories/nmap-before-7.992-heap-address-disclosure-via-predictable-nse-lua-seed

https://nmap.org/changelog.html

https://github.com/nmap/nmap/commit/6aaada8c53425c6c390335f38d90184d04f1dae4

https://github.com/nmap/nmap/blob/v7.992/CHANGELOG

https://github.com/nmap/nmap/blob/1bb2586a85ae41dc6824a8405e44d17309e9288c/nse_main.lua#L892

https://github.com/nmap/nmap

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-137450

Details

Source: Mitre, NVD

Published: 2026-11-27

Updated: 2026-11-27

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

Severity: Medium

CVSS v3

Base Score: 4.3

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Severity: Medium

CVSS v4

Base 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

Severity: Medium