cvelo
P3 · MediumCVSS 5.3EPSS 0.5%

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

  • CVE-2026-81407
  • GHSA-m3cm-27jc-3hvj
  • EUVD-2026-135601

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.

Text from the CVE.org record.

Recommendation

  • Nmap

    • If you run a version before 7.992update to 7.992 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Nmap

    Affected versionsFixed in
    before 7.9927.992

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.