AZL-116188: CVE-2026-81407 affecting package nmap 7.95-6
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.
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
Who is exposed to password disclosure from this issue?
Users running affected Nmap scripts that authenticate to an Apple Filing Protocol server with afp.username and afp.password are exposed if an attacker can passively observe the network traffic between Nmap and the server.
What does an attacker need to exploit this vulnerability?
An attacker only needs a capture of the relevant Nmap-to-AFP-server traffic. Man-in-the-middle access and cryptanalytic attacks are not required because the Diffie-Hellman private exponent is fixed and publicly known.
What information can be recovered from captured traffic?
The attacker can compute the shared secret using the hardcoded exponent and the server's public value, then decrypt the password supplied to affected NSE scripts such as afp-showmount.nse and afp-brute.nse.
What version boundary is provided for remediation?
The vulnerability affects Nmap versions before 7.992. The listed package is nmap 7.95-6.