← VULNERABILITIES

CVE-2026-81407

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

Medium · 6.0Fix available
CVSS
6
EPSS
0.48% (p34)
Published
2026-11-25
Age
3d old
Modified
2026-11-28
Product
Nmap Nmap

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

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.

Fixed in

7.992

Affected packages

EcosystemPackageRangeFixed
vendorNmap>=0, <7.9927.992

Sources

  • NVD · first seen 3d ago · NVD terms of use
  • OSV · first seen 3d ago · CC-BY 4.0
  • CVE List · first seen 3d ago · CVE Terms of Use

References

JSON