Nmap before 7.992 contains a hardcoded cryptographic key vulnerability in the DHCAST128 login of the NSE afp.lua
Source GCVE Database
Not known to be exploited · CVSS 6.0 Medium : upgrade to 7.992 when convenient.
Data as of 25 Nov 2026, 19:05 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 6.0 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.3 |
- Patch
- Available – fixed in 7.992
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.
What to do
Upgrade Nmap to 7.992.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| NmapNmap | Affected
| Fixed in
|
GitHubNmappkg:github/NmapOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid using vulnerable Nmap versions for Apple Filing Protocol interactions or refrain from using the affected NSE scripts with sensitive credentials.
Description
Nmap versions before 7.992 have a vulnerability in the NSE afp.lua library where a hardcoded cryptographic key is used in the DHCAST128 login process. This key is a fixed, publicly known Diffie-Hellman private exponent. An attacker who passively observes network traffic between Nmap and an Apple Filing Protocol server can compute the shared secret and decrypt passwords supplied to certain Nmap scripts without needing man-in-the-middle access or cryptanalysis.
References
- nvd.nist.gov/vuln/detail/CVE-2026-81407 (opens in a new tab)
- github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8 (opens in a new tab)
- github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded (opens in a new tab)
- github.com/nmap/nmap/blob/v7.992/CHANGELOG (opens in a new tab)
- nmap.org/changelog.html (opens in a new tab)
- vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua (opens in a new tab)