CVE-2026-81409 in Nmapinfo

Summary

by MITRE • 11/25/2026

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).

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in versions of Nmap prior to 7.992 represents a significant server-side request forgery flaw within the http-cisco-anyconnect.nse script and its underlying anyconnect.lua library. This security defect stems from an improper validation mechanism in the HTTP redirect handler, which fails to verify that subsequent requests remain directed at the originally scanned host. When Nmap processes responses containing redirection codes, it blindly follows the server-supplied target without performing necessary checks to ensure the destination is within the scope of the scan or restricted to local addresses. This lack of boundary enforcement allows a malicious web server operating on a targeted host to manipulate the scanning tool into directing traffic toward arbitrary external hosts and ports.

The operational impact of this vulnerability extends beyond simple information leakage, as it enables an attacker to leverage Nmap as a proxy for network reconnaissance against internal infrastructure that is not directly accessible from the internet or the scanner's location. By crafting specific HTTP responses with redirect headers pointing to loopback addresses or private IP ranges, an adversary can force Nmap to send HEAD and POST requests to these restricted destinations. Although the response content itself is not returned to the attacker due to the nature of the script execution, the act of sending these packets constitutes a successful exploitation vector for network mapping and service discovery within isolated environments. This capability effectively bypasses firewall rules or access control lists that would otherwise prevent direct connection attempts from external sources.

From a classification perspective, this flaw aligns with CWE-918, which describes Server-Side Request Forgery (SSRF), specifically involving the failure to validate URLs against a whitelist of allowed hosts. The exploitation technique mirrors tactics found in the MITRE ATT&CK framework under T1046, Network Service Discovery, where an attacker uses existing infrastructure as a pivot point to map internal network services. Because the http-cisco-anyconnect.nse script is included in the default script category executed during standard scans with flags such as -sC or -A, this vulnerability affects a broad range of users who perform routine security assessments without explicitly opting into advanced scripting features.

Mitigation strategies primarily involve upgrading to Nmap version 7.992 or later, where the redirect handler has been hardened to enforce strict host validation checks before following any redirection instructions. In environments where immediate patching is not feasible, administrators should exercise caution when running scripts from the default category against untrusted hosts and consider disabling specific high-risk scripts via command-line arguments until updates can be applied. Additionally, implementing network-level controls such as egress filtering on scanning machines can provide a secondary layer of defense by blocking outbound connections to unauthorized internal subnets or loopback addresses, thereby limiting the blast radius even if an SSRF attempt is initiated.

Responsible

VulnCheck

Reservation

08/26/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00481

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!