Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-81407 EUVD-2026-135601GHSA-m3cm-27jc-3hvj

Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua

Published Nov 25, 2026 · Assigned by VulnCheck

Description

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 products

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 nmap 7.993+dfsg-1 —
Debian 13 nmap No fix yet —
Debian 12 nmap No fix yet —

Advisories 1

References