CVE-2026-81407
published medium CVSS 4.0 · 6.0Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Nmap | — | Nmap0 to < 7.992 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Nmap | Nmap | 0 to < 7.992 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-321 Use of Hard-coded Cryptographic Key
References
5- Nmap 7.992 Changelog https://github.com/nmap/nmap/blob/v7.992/CHANGELOG
- Fix Commit (DHX2 UAM) https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8
- Fix Commit (random AFP DH exponent) https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded
- Nmap Changelog https://nmap.org/changelog.html
- VulnCheck Advisory: Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua
Provider assertions
2VulnCheck · cna
Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5fff96951995ba1f38bbd725de1970fae1531c60ad991f96eed76264ed422bfc
- Ingested
- 27 Nov 2026, 16:47:37 UTC
- Source record
- Official CVE record