| CVE |
Vendors |
Products |
Updated |
CVSS v3.1 |
| Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the inline AXFR response reader of the dns-zone-transfer.nse script, which reads the zone transfer response without a size limit. A malicious DNS server on a scanned host can stream unbounded data over TCP port 53 after the AXFR request, causing the memory of the Nmap process to grow at the attacker's send rate until it is exhausted. |
| 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 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. |
| 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 a hardcoded cryptographic key vulnerability in the DHCAST128 login of the NSE afp.lua library, which uses a fixed, publicly known Diffie-Hellman private exponent. A passive observer of the network traffic between Nmap and an Apple Filing Protocol server can compute the shared secret from the hardcoded exponent and the server's public value and decrypt the password supplied to scripts such as afp-showmount.nse and afp-brute.nse through the afp.username and afp.password arguments, without man-in-the-middle access or cryptanalysis. |
| Nmap before 7.992 contains a loop with an unreachable exit condition in the parameter-list parsing of the NSE drda.lua library, which keeps growing its parameter list while processing a malicious DRDA response. A malicious DRDA service on a scanned host can make the loop consume memory without bound on 64-bit builds, exhausting the Nmap process and discarding NSE results for every other host in the same scan batch without reporting an error; the library is reached by service probes during version detection (-sV). |
| Nmap before 7.992 contains a server-side request forgery vulnerability in the http-cisco-anyconnect.nse script and the anyconnect.lua library, whose redirect handler follows a server-supplied redirect target without checking that it stays on the scanned host. A malicious web server on a scanned host can redirect Nmap to an arbitrary host and port, including internal and loopback addresses the attacker cannot reach directly, making Nmap send a HEAD request followed by a POST request there; response content is not returned to the attacker. The script runs in the default script category (-sC, -A). |
| 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 before 7.992 contains an infinite loop vulnerability in the ConfCreateResponse GCC block parser of the NSE rdp.lua library, which does not check that each block advances the read position. A malicious RDP server on a scanned host can include a single malformed zero-length block in an otherwise valid handshake, causing a permanent 100% CPU hang of the Nmap process that the script-timeout option does not interrupt; the library is used by rdp-enum-encryption.nse in the default script category (-sC, -A). |
| 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). |
| 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 before 7.992 contains an infinite loop vulnerability in the process_write function of the NSE tn3270.lua library, whose write loop does not advance when it processes a malformed Repeat to Address (RA) order. A malicious TN3270 server on a scanned host can embed a single 6-byte malformed RA order in an ordinary screen-write data stream after a normal negotiation, causing 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 infinite loop vulnerability in the dispatcher of the NSE tftp.lua library, which removes completed coroutines but not ones that ended in an error, leaving a zero-yield spin. A malicious TFTP exchange reached by snmp-ios-config.nse after an SNMP write sequence can leave a dead coroutine that freezes the entire Nmap invocation, before port scanning begins for any target in the run; the hang is prevented when the script-timeout option is set. |
| Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the TLV.AUTH parser of the NSE eigrp.lua library, whose length arithmetic cancels out the running read position. An attacker on the same layer 2 segment can send a single crafted EIGRP Update of roughly 36 bytes over unauthenticated multicast, causing unbounded table growth that exhausts the memory of the Nmap process when broadcast-eigrp-discovery.nse is running. |
| 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 up to and including 7.99 contains a denial of service vulnerability that allows remote attackers to crash the application by sending a crafted packet containing a zero-length TCP option. The malformed packet forces the Packet:parse_options() function in nselib/packet.lua to allocate objects in an infinite loop, causing an out-of-memory condition that results in application crash. |
| Nmap through 7.99 does not keep the IPv6 extension-header walk within the captured packet in ipv6_get_data_primitive (libnetutil/netutil.cc), so the pointer advances past the buffer and the remaining-length computation underflows to a large value. A scanned target or on-path attacker returning a crafted IPv6 response with a truncated extension header can trigger out-of-bounds reads and a crash during raw IPv6 scans. |
| The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote servers to upload "arbitrarily named" files via a crafted FullName parameter in a response, as demonstrated using directory traversal sequences. |
| Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption and application crash) via a crafted TCP-based service. |
| nmap version 6.49BETA6 through 7.60, up to and including SVN revision 37147 contains a Directory Traversal vulnerability in NSE script http-fetch that can result in file overwrite as the user is running it. This attack appears to be exploitable via a victim that runs NSE script http-fetch against a malicious web site. This vulnerability appears to have been fixed in 7.7. |