---
title: "CVE-2026-81407"
canonical_url: "https://pkgseek.com/security/CVE-2026-81407"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-81407

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.

CVE-2026-81407 is rated MEDIUM (5.3), with 5 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (5.3)
- **Affected builds**: 5
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | ncat | 7.95+dfsg-3 | — |
| Debian | trixie | ndiff | 7.95+dfsg-3 | — |
| Debian | trixie | nmap | 7.95+dfsg-3 | — |
| Debian | trixie | nmap-common | 7.95+dfsg-3 | — |
| Debian | trixie | zenmap | 7.95+dfsg-3 | — |
