PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-81407 Nmap CVE debrief

A vulnerability in Nmap versions before 7.992 allows for cleartext credential recovery via a hardcoded Diffie-Hellman private exponent in the afp.lua library. This issue arises from the use of a fixed, publicly known Diffie-Hellman private exponent in the DHCAST128 login of the NSE afp.lua library. A passive observer of the network traffic between Nmap and an Apple Filing Protocol server can compute the shared secret and decrypt the password supplied to scripts such as afp-showmount.nse and afp-brute.nse. The vulnerability has a CVSS score of 6 and a severity rating of MEDIUM.

Vendor
Nmap
Product
Unknown
CVSS
MEDIUM 6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-25
Original CVE updated
2026-11-27
Advisory published
2026-11-25
Advisory updated
2026-11-27

Who should care

Network administrators and security teams responsible for managing Nmap installations should assess their exposure and update vulnerable instances to prevent potential credential exposure.

Why it matters

Defenders should prioritize patching Nmap installations to version 7.992 or later to prevent potential credential exposure. Network administrators and security teams responsible for managing Nmap installations should assess their exposure and update vulnerable instances.

  • Potential credential exposure in Nmap installations
  • Decryption of passwords by passive observers
  • Verification of Nmap version and patch status required
  • Update priority for Nmap installations

Technical summary

The Nmap afp.lua library uses a hardcoded, publicly known Diffie-Hellman private exponent, allowing a passive observer to compute the shared secret and decrypt passwords supplied to certain scripts such as afp-showmount.nse and afp-brute.nse. This issue arises from the use of a fixed, publicly known Diffie-Hellman private exponent in the DHCAST128 login of the NSE afp.lua library. 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. Network administrators and security teams should assess their exposure and update vulnerable instances to 7.992

Defensive priority

Defenders should prioritize patching Nmap installations to version 7.992 or later to prevent potential credential exposure. Network administrators and security teams responsible for managing Nmap installations should assess their exposure and update vulnerable instances.

Recommended defensive actions

  • Patch Nmap installations to version 7.992 or later
  • Assess exposure and update vulnerable instances
  • Monitor network traffic for potential exploitation attempts
  • Verify Nmap version and patch status
  • Review compensating controls for exposed systems
  • Check relevant monitoring, detection, and logs for exposed assets
  • Track exceptions and retest remediated assets

Evidence notes

The vulnerability is confirmed in Nmap versions before 7.992. Official sources, including the CVE Program and NVD, provide details on the vulnerability. However, the extent of exploitation and affected deployments require further verification.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-81407 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-81407

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-81407 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-81407

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Nmap < 7.992 Cleartext Credential Recovery via Hardcoded DH Exponent in afp.lua

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/81xxx/CVE-2026-81407.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/nmap/nmap/commit/f4d4df911ae8b11a5b8855fd6350a853f1f6cded

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/nmap/nmap/commit/c7b9546bb83bf4d48b3103f05c411cac7951f9e8

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/nmap/nmap/blob/v7.992/CHANGELOG

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://nmap.org/changelog.html

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/nmap-7.992-cleartext-credential-recovery-via-hardcoded-dh-exponent-in-afp-lua

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.