CVE-2026-81407
Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua
CVSS Score
5.3
EPSS Score
0.5%
EPSS Percentile
34th
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.
| CWE | CWE-321 |
| Vendor | nmap |
| Product | nmap |
| Published | Nov 25, 2026 |
| Last Updated | Nov 27, 2026 |
Stay Ahead of the Next One
Get instant alerts for nmap nmap
Be the first to know when new medium vulnerabilities affecting nmap nmap are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
Affected Versions
Nmap / Nmap
0 < 7.992
References
github.com: https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded github.com: https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8 github.com: https://github.com/nmap/nmap/blob/v7.992/CHANGELOG nmap.org: https://nmap.org/changelog.html vulncheck.com: https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua
Credits
Karan Bamal (SentinelOne)