CVE-2026-81410 in Nmap
Summary
by MITRE • 11/25/2026
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.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in versions of Nmap prior to 7.992 represents a critical server-side request forgery flaw embedded within the broadcast-upnp-info.nse script and its underlying upnp.lua library. This security defect arises from an insufficient validation mechanism when processing Universal Plug and Play responses. Specifically, upon receiving a UPnP discovery broadcast, the software extracts the LOCATION URL provided by the responding device to fetch further device description details. However, the implementation fails to verify that this URL points back to the host that initiated the response or resides within the expected local network segment. This lack of origin validation allows an attacker operating on the same local area network to manipulate the request destination entirely at will.
An adversary positioned on the local network can exploit this flaw by crafting a malicious UPnP discovery broadcast packet. By answering the script's initial discovery probe with a specially constructed response, the attacker specifies a LOCATION URL that directs Nmap toward an arbitrary target. This capability extends beyond external internet hosts to include internal corporate infrastructure and even loopback addresses such as 127.0.0.1 or localhost interfaces on the victim machine itself. When Nmap processes this malicious broadcast, it blindly issues a GET request to the specified URL without performing any sanity checks regarding host identity or network scope. This behavior effectively turns the vulnerable scanner into an unwitting proxy for unauthorized internal reconnaissance and access attempts.
The operational impact of this vulnerability is significant due to its potential use as a pivot point for further attacks within trusted networks. Although the response content from the forged request is not returned directly to the attacker, the mere act of sending requests to sensitive internal services can trigger side effects or reveal information through timing differences and error messages. Attackers can leverage this mechanism to probe firewall rules, identify active services on loopback interfaces that are typically inaccessible remotely, or interact with administrative panels running on local hosts. This capability undermines the principle of least privilege by allowing external network actors to influence internal traffic flows initiated by trusted security tools, potentially leading to unauthorized data access or service disruption depending on the nature of the targeted internal endpoints.
From a classification perspective, this vulnerability aligns closely with CWE-918 Server-Side Request Forgery (SSRF), specifically where the application fails to validate user-supplied URLs against an allowlist of expected hosts. It also relates to CWE-20 Improper Input Validation, as the software accepts and processes external input without adequate sanitization or verification of its origin. In terms of offensive security frameworks, this technique corresponds to ATT&CK tactic T1598 Phishing for Information within a Network, specifically using baiting techniques where trusted tools are manipulated into performing unauthorized network actions. The exploitation vector is classified as Local Network with low complexity, requiring only that the attacker be on the same broadcast domain as the victim running Nmap.
Mitigation strategies primarily involve upgrading to Nmap version 7.992 or later, where this validation logic has been corrected to ensure LOCATION URLs are restricted to expected ranges and do not permit arbitrary redirections. For environments unable to upgrade immediately, network segmentation controls can help mitigate risk by restricting UPnP traffic between untrusted zones and internal management networks. Additionally, administrators should audit the use of Nmap scripts in automated pipelines or on systems exposed to less trusted network segments, ensuring that such tools are not executed in contexts where local attackers might have access to broadcast domains. Implementing strict firewall rules that limit outbound connections from scanning hosts to only necessary destinations can also reduce the blast radius if a similar vulnerability were discovered in other software components.