CVE-2026-81407
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Azure Linux Affected 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| 3.0 | — | Affected | — |
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | nmap |
Affected | — |
| sid | nmap |
Fixed | 7.993+dfsg-1 |
| forky | nmap |
Fixed | 7.993+dfsg-1 |
| bookworm | nmap |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| nmap | nmap | {"endExcluding":"7.992"} | 7.992 |
References
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG
- https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8
- https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded
- https://nmap.org/changelog.html
- https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua
- https://security-tracker.debian.org/tracker/CVE-2026-81407
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-81407
- https://www.suse.com/security/cve/CVE-2026-81407.html
CWEs
CWE-321
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.