{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "7.992"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "cd6ddce888f6920e0acb88000555de12ba554029"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "9de32e381e5fde01e18f1a62b04b3c44ded59c24"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0ee561663c1d7d2d4e708cd414dccfd3d9df30d9"
            },
            {
              "fixed": "cd6ddce888f6920e0acb88000555de12ba554029"
            },
            {
              "fixed": "9de32e381e5fde01e18f1a62b04b3c44ded59c24"
            }
          ],
          "repo": "https://github.com/nmap/nmap",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-789"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81412.json"
  },
  "details": "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).",
  "id": "CVE-2026-81412",
  "modified": "2026-11-25T18:45:19.383133928Z",
  "published": "2026-11-25T17:31:14.207Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81412.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/nmap/nmap"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nmap/nmap/blob/v7.992/CHANGELOG"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029"
    },
    {
      "type": "ADVISORY",
      "url": "https://nmap.org/changelog.html"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-81412"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Nmap \u003c 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua"
}