Nmap before 7.992 contains an infinite loop vulnerability in the LSUpdate.parse function of the NSE ospf.lua library, which does not advance when it reads an LSA header with a zero length. An attacker on the same layer 2 segment can send a single spoofed, unauthenticated OSPF LS Update packet, causing a permanent 100% CPU hang of the Nmap process as soon as broadcast-ospf2-discover.nse captures it.
Nmap versions prior to 7.992 contain a vulnerability in the TLV.AUTH parser of the NSE eigrp.lua library that allows an attacker on the same layer 2 segment to cause uncontrolled resource consumption. By sending a crafted EIGRP Update packet, an attacker can trigger unbounded memory growth in the Nmap process when the broadcast-eigrp-discovery.nse script is running, potentially leading to denial of service.
Nmap versions before 7.992 contain an infinite loop vulnerability in the NSE tftp.lua library dispatcher. This flaw occurs because completed coroutines that ended in error are not removed, causing a zero-yield spin that can freeze the entire Nmap process before port scanning begins. The hang can be avoided by setting the script-timeout option. The issue is fixed in version 7.992.
Nmap versions prior to 7.992 contain an infinite loop vulnerability in the NSE tn3270.lua library's process_write function. This flaw occurs when processing a malformed Repeat to Address (RA) order, causing the write loop to hang and consume 100% CPU. A malicious TN3270 server can exploit this by embedding a specific malformed RA order in the screen-write data stream, resulting in a permanent hang of the Nmap process when the tn3270-screen.nse script runs. The script-timeout option does not interrupt this hang. The issue is fixed in Nmap version 7.992.
Nmap before 7.992 contains an infinite loop vulnerability in the negotiate_tn3270 function of the NSE tn3270.lua library, whose device-type search loop does not advance when the server sends a protocol-conformant DEVICETYPE IS response without an LU suffix. A TN3270E server on a scanned host, including a non-malicious one that sends such a response, causes a permanent 100% CPU hang of the Nmap process when tn3270-screen.nse runs, which the script-timeout option does not interrupt.
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the sendPacketsTCP function of the NSE dns.lua library, which reads a DNS-over-TCP response without a size limit and builds it by repeated string concatenation. A malicious DNS server on a scanned host can stream unbounded data in response to the initial SOA lookup made by dns-zone-transfer.nse, before any AXFR request is sent, causing unbounded memory growth and quadratic CPU cost in the Nmap process.
Nmap versions prior to 7.992 contain a vulnerability in the dns-zone-transfer.nse script where the inline AXFR response reader does not limit the size of data read from a DNS zone transfer response. This allows a malicious DNS server to send an unbounded amount of data over TCP port 53, causing uncontrolled memory consumption in the Nmap process until exhaustion.
Nmap versions prior to 7.992 contain a vulnerability in the NSE msrpctypes.lua library used by the smb-enum-shares.nse script. This flaw allows a malicious SMB server to trigger excessive memory allocation by declaring an extremely large EntriesRead value, leading to prolonged CPU usage and memory exhaustion of the Nmap process.
Nmap versions prior to 7.992 contain an infinite loop vulnerability in the ConfCreateResponse GCC block parser within the NSE rdp.lua library. This flaw allows a malicious RDP server to send a malformed zero-length block during the handshake, causing the Nmap process to hang at 100% CPU usage. The issue affects scripts using this library, including rdp-enum-encryption.nse, which is part of the default script category. The vulnerability was fixed in version 7.992.
Nmap before 7.992 contains a server-side request forgery vulnerability in the broadcast-upnp-info.nse script and the upnp.lua library, which fetch the device description from the LOCATION URL in a UPnP response without checking that it points to the responding host. An attacker on the local network who answers the script's discovery broadcast can supply a LOCATION URL for an arbitrary host, port and path, including internal and loopback addresses, making Nmap send a GET request there; response content is not returned to the attacker.
Nmap versions before 7.992 contain a server-side request forgery (SSRF) vulnerability in the http-cisco-anyconnect.nse script and the anyconnect.lua library. This flaw allows a malicious web server on a scanned host to redirect Nmap to arbitrary hosts and ports, including internal and loopback addresses, causing Nmap to send HEAD and POST requests to those targets. The vulnerability affects default script categories (-sC, -A).
Nmap versions prior to 7.992 contain an infinite loop vulnerability in the NSE drda.lua library's parameter-list parsing. This flaw occurs when processing a malicious DRDA response, causing unbounded memory consumption on 64-bit builds. The issue leads to exhaustion of the Nmap process memory and discards NSE results for other hosts in the same scan batch without error reporting. The vulnerable code is triggered during service probes in version detection (-sV).
Nmap versions before 7.992 contain a vulnerability due to a hardcoded cryptographic key in the DHCAST128 login mechanism of the NSE afp.lua library. This flaw involves a fixed, publicly known Diffie-Hellman private exponent, allowing a passive network observer to compute the shared secret and decrypt passwords used by certain Nmap scripts without requiring man-in-the-middle access or cryptanalysis.
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the read_db2_packet function of the db2-das-info.nse script, which trusts an unmasked 32-bit length field supplied by the server. A malicious DB2 Administration Server on a scanned host can declare a packet length of up to roughly 4.29GB, causing the script to buffer that much data and the Nmap process to exhaust memory; the script runs during version detection (-sV).
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.