---
title: "CVE-2026-81412"
canonical_url: "https://pkgseek.com/security/CVE-2026-81412"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-81412

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

CVE-2026-81412 is rated MEDIUM (6.5), with 5 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (6.5)
- **Affected builds**: 5
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | ncat | 7.95+dfsg-3 | — |
| Debian | trixie | ndiff | 7.95+dfsg-3 | — |
| Debian | trixie | nmap | 7.95+dfsg-3 | — |
| Debian | trixie | nmap-common | 7.95+dfsg-3 | — |
| Debian | trixie | zenmap | 7.95+dfsg-3 | — |
