cvelo
P3 · MediumCVSS 6.5EPSS 0.4%

Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua

  • CVE-2026-81412
  • GHSA-2v7r-rwhx-jrxc
  • EUVD-2026-135607

Description

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).

Text from the CVE.org record.

Recommendation

  • Nmap

    • If you run a version before 7.992update to 7.992 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Nmap

    Affected versionsFixed in
    before 7.9927.992

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.