Uncontrolled Memory Allocation Affecting nmap package, versions <7.993+dfsg-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.45% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-NMAP-22989369
  • published26 Nov 2026
  • disclosed25 Nov 2026

Introduced: 25 Nov 2026

NewCVE-2026-81412  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade Echo:latest nmap to version 7.993+dfsg-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nmap package and not the nmap package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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

CVSS Base Scores

version 3.1