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
| Product | Versions | Fixed in |
|---|---|---|
| Nmap Nmap | < 7.992 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded — CVE Program
- https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8 — CVE Program
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG — CVE Program
- https://nmap.org/changelog.html — CVE Program
- https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua — CVE Program
Weaknesses (CWE): CWE-321
Relevant change history
Published
Preliminary advisory published.