Read the docs

Nmap unbounded memory allocation in msrpctypes.lua NSE library

Priority LOW 32CWE-789Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 5 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-789.

Summary

Nmap before 7.992 has an excessive memory allocation flaw (CWE-789) in the unmarshall_array function of its msrpctypes.lua NSE library. The function trusts the entry count declared by the server, so a malicious SMB server on a scanned host can make Nmap spin the CPU and exhaust the memory of the Nmap process. The library is used by smb-enum-shares.nse, which runs in the default script category, so default script scans reach it.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

Nmap before 7.992 contains an excessive memory allocation vulnerability in the unmarshall_array function of the NSE msrpctypes.lua library, which trusts the entry count declared by the server. A malicious SMB server on a scanned host can declare an EntriesRead value of 0xFFFFFFFF with an empty buffer, causing a prolonged CPU spin and exhausting the memory of the Nmap process; the library is used by smb-enum-shares.nse in the default script category (-sC, -A).

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0045 30th percentileScored 2026-11-30
Fix Partial Nmap (Nmap): 7.992Red Hat: 5 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
NmapNmapbefore 7.9927.992Patch availableCNA
  • Nmap VendorNmap Affected before 7.992 Fixed in 7.992 Patch available CNA

Remediation

Upgrade Nmap to version 7.992. Red Hat's plan is none available for Red Hat Enterprise Linux 7, 8, 9 and 10, and no fix planned for Red Hat Enterprise Linux 6.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

  • Fix · CNA Nmap (Nmap) Fixed in 7.992

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    Nmap 7.992

    15 records Highest priority Priority LOW 15 LOW

    Other records, highest priority first

    • TI-2026-98358 Memory exhaustion in Nmap db2-das-info script via packet lengthPriority LOW 38
    • TI-2026-98363 Infinite loop in Nmap rdp.lua library hangs scans on malicious RDP serversPriority LOW 37
    • TI-2026-98360 Unbounded loop in Nmap NSE drda.lua exhausts memoryPriority LOW 32

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Not affected: 2 products
  • Red Hat OpenShift Container Platform 4
  • Red Hat OpenShift Container Platform 5

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-81412
  2. 2026-11-25 Alias added: GHSA-2v7r-rwhx-jrxc
  3. 2026-11-27 Affected versions changed · Red Hat
  4. 2026-11-27 CVSS score added · Red Hat
  5. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2026-41812 Nmap - Integer Underflow in IPv6 Extension Header Parsing CVSS 4.0MEDIUM 6.9
  • TI-2018-10857 Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial… CVSS 3.0HIGH 7.5
  • TI-2013-04289 The http-domino-enum-passwords.nse script in NMap before 6.40, when… CVSS 2.0MEDIUM 6.8
  • TI-2017-13767 nse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition due to a double… CVSS 3.0HIGH 7.5
  • TI-2026-98358 Memory exhaustion in Nmap db2-das-info script via packet length CVSS 4.0HIGH 7.1
  • TI-2026-98363 Infinite loop in Nmap rdp.lua library hangs scans on malicious RDP servers CVSS 4.0HIGH 7.1
See all 23 →

Sources