Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Nmap | Nmap | < 7.992 | 7.992 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nmap | 7.993+dfsg-1 | — |
| Debian 13 | nmap | No fix yet | — |
| Debian 12 | nmap | No fix yet | — |
Advisories 1
- WID-SEC-2026-4820 nmap: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 25, 2026
References
- Fix Commit (UPnP XML from responding target only) patch
- Nmap 7.992 Changelog release-notes
- Nmap Changelog release-notes
- VulnCheck Advisory: Nmap < 7.992 Blind Server-Side Request Forgery via Unvalidated UPnP LOCATION URL in broadcast-upnp-info.nse third-party-advisory