Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| NmapNmap |
< 7.992→ 7.992 |
7.992 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-81407 nmap Fix available
- Ubuntu UBUNTU-CVE-2026-81407 nmap No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nmap.org
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com