{"affected":[{"defaultStatus":"unaffected","product":"Nmap","source":"CNA: VulnCheck","vendor":"Nmap","versions":[{"lessThan":"7.992","status":"affected","version":"0","versionType":"custom"}]}],"cveId":"CVE-2026-81407","cwes":["CWE-321"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":6,"severity":"medium","source":"CNA: VulnCheck","vector":"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","version":"4.0"},{"score":5.3,"severity":"medium","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}],"modifiedAt":1795627745202,"publishedAt":1795627745202,"references":[{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/nmap/nmap/blob/v7.992/CHANGELOG"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://nmap.org/changelog.html"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8"}],"revision":"a676db6cdc6cdab7e093f631be35b82e00c01a83ab5393497a31cb4269f961c4","sources":[{"modifiedAt":1795627745202,"name":"CNA: VulnCheck","retrievedAt":1795630201656,"url":"https://www.cve.org/CVERecord?id=CVE-2026-81407"}],"ssvc":null,"status":"published","title":"Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua","updatedAt":1795630201656}