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

- Severity: Medium 6.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-11-25T17:29:05.202Z
- Modified: 2026-11-27T17:18:02.940Z
- Weaknesses: CWE-321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Nmap Nmap: before 7.992

## Every score

- VulnCheck: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded> (patch)
- <https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8> (patch)
- <https://github.com/nmap/nmap/blob/v7.992/CHANGELOG> (release-notes)
- <https://nmap.org/changelog.html> (release-notes)
- <https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-81407](https://www.cve.org/CVERecord?id=CVE-2026-81407), CVE Terms of Use, modified 2026-11-27
- NVD: [CVE-2026-81407](https://nvd.nist.gov/vuln/detail/CVE-2026-81407), Public domain, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-81407 · Whole record: https://cve.day/CVE-2026-81407.json · Rebuilt by cve.day 2026-11-27T17:32:13.960Z
