Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6CVE-2026-81407

CVE-2026-81407: Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua

Nmap Nmap

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-81407: medium-severity vulnerability (CVSS 6) in Nmap Nmap.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 6.

Affected products and versions

Nmap Nmap < 7.992

ProductVersionsFixed in
Nmap Nmap< 7.992—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-321

Relevant change history

  1. Published

    Preliminary advisory published.