AZL-116366: CVE-2026-137979 affecting package nmap 7.95-6
Nmap before 7.992 contains an information disclosure vulnerability in the Nmap Scripting Engine because nsemain.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.
Affected Software
Event History
Frequently Asked Questions
Which scanning activity is exposed to this issue?
The issue is exposed during Nmap default-script scans using -sC, where NSE script traffic can include values derived from Lua's math.random generator. A malicious host being scanned can observe those values.
What must an attacker control or do to exploit it?
The attacker must operate or control a host that is scanned with -sC and observe math.random-derived values in NSE script traffic. They can then brute-force the generator seed to recover a heap address and weaken ASLR.
Are installations running nmap 7.95-6 affected?
Yes. The affected package is nmap 7.95-6, and the vulnerability affects Nmap versions before 7.992.
What mitigation is available if an update cannot be applied immediately?
Avoid running -sC scans against untrusted or potentially malicious hosts until Nmap is updated to a version that is not before 7.992.