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?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| NmapNiche | < 7.992 | 7.992 |
What to do
Update to a fixed version: 7.992.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.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
- Prerequisites multiplied together0.315
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.315 × threat 0.852.142
- Rounded to one decimal between 0.1 and 102.1
Exploitation and evidence timeline
- 25 Nov 2026 Published
- 3 Dec 2026 Risk 2.1 (cvss fallback)
Weakness
CWE-321
References
- https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cdedpatch
- https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8patch
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOGrelease-notes
- https://nmap.org/changelog.htmlrelease-notes
- https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-luathird-party-advisory
- CVE-2026-81407 on CVE.org