Nmapに、悪意あるRPCサービスでメモリを枯渇させられる脆弱性
Summary
Nmap 7.992より前のバージョンには、NSEのrpc.luaライブラリでONC-RPCのフラグメント長に上限がなく、スキャン対象のホストから大量のメモリを消費させられる脆弱性があります。バージョン検出(-sV)の実行中にrpcinfo.nseがこの処理を通るため、Nmapのプロセスが停止するおそれがあります。修正版の7.992が公開されているので、Nmapを7.992以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Nmap 7.992より前のバージョンには、NSEのrpc.luaライブラリでONC-RPCのフラグメント長に上限がなく、スキャン対象のホストから大量のメモリを消費させられる脆弱性があります。バージョン検出(-sV)の実行中にrpcinfo.nseがこの処理を通るため、Nmapのプロセスが停止するおそれがあります。修正版の7.992が公開されているので、Nmapを7.992以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| NmapNmap |
< 7.992→ 7.992 |
7.992 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-81405 nmap Fix available
- Ubuntu UBUNTU-CVE-2026-81405 nmap No fixed version in this record
Original description The description as published by the source.
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the Comm.ReceivePacket function of the NSE rpc.lua library, which buffers ONC-RPC record fragments using the server-declared fragment length without an upper bound. A malicious RPC service on a scanned host can declare fragments of up to roughly 2.1GB, and up to 400 fragments per call, causing the Nmap process to exhaust memory; the read path is reached by rpcinfo.nse during version detection (-sV) and is shared by the NFS, rusers and NetWorker scripts.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nmap.org
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com