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

Published Nov 27, 2026
·
Updated

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

1 affected component
Nmap Nmap<7.992

Event History

Nov 27, 2026
CVE Published
via MITRE·03:38 PM
Data Sourced
via MITRE·03:38 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM

Frequently Asked Questions

1

Which scanning scenarios are exposed?

Nmap installations before 7.992 are exposed when performing -sC scans. A malicious host being scanned can observe math.random-derived values in NSE script traffic.

2

What does an attacker need to exploit this issue?

The attacker needs to operate or control a host that is scanned with Nmap's -sC option. They must observe the relevant NSE script traffic and brute-force the predictable Lua random-generator seed.

3

What can be done if updating is not immediately possible?

Avoid using -sC scans against untrusted or potentially malicious hosts until Nmap can be updated. The described disclosure depends on NSE script traffic generated during such scans.

4

How can I determine whether my installation is affected?

Check the installed Nmap version. Versions before 7.992 are affected; version 7.992 is identified as the fixed release.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203