AZL-116185: CVE-2026-81406 affecting package nmap 7.95-6
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the readdb2packet 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).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
nmapto a version that resolves this vulnerability.Fixed in 7.992
Event History
Frequently Asked Questions
When is an Nmap scan exposed to this issue?
The vulnerable script runs during version detection, so scans using -sV against a host running a malicious DB2 Administration Server are exposed. The affected behavior is in the db2-das-info.nse script.
What does an attacker need to do to trigger memory exhaustion?
The attacker needs to control or operate a DB2 Administration Server on a scanned host and return a packet with a deliberately large 32-bit length field. Nmap can then attempt to buffer up to roughly 4.29GB of data, exhausting the scanner's memory.
Which Nmap versions are affected?
Nmap versions before 7.992 are affected. The listed Azure Linux package version is nmap 7.95-6.