Skip to content

Nmap

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

CVE-2026-81407Published 25 Nov 2026, 17:29 UTC

Real-world risk

2.1/ 10Low

Routine

If the vulnerable configuration applies to you: 4.8

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.0

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from VulnCheck)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
NmapNiche< 7.9927.992

What to do

Update to a fixed version: 7.992.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 43), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.315
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.315 × threat 0.852.142
  4. Rounded to one decimal between 0.1 and 102.1

How the score works

Exploitation and evidence timeline

  1. 25 Nov 2026 Published
  2. 3 Dec 2026 Risk 2.1 (cvss fallback)

Weakness

CWE-321

References

Get alerts for Nmap

Free email or text alerts when a vulnerability in Nmap reaches risk 8 or higher. Nothing else.

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