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

State
Published
Severity
6.0 Medium
Published
Nov 25, 2026
Updated
Nov 27, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

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.

ProductVersions
Nmap Nmapbefore 7.992 Affected

Weaknesses

  • CWE-321 Use of Hard-coded Cryptographic Key

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.