CVE-2026-16516Wolfssh
Insufficient ECDSA curve validation in key exchange in wolfSSH
Critical 9.0 No auth needed
Follow: this CVE · Wolfssh · Wolfssh We alert you by email or Slack (account required).
- Priority
- 69
- CVSS 4.0
- 9.0
- EPSS
- —
- Auth required
- No
- Published
- Oct 7, 2026
- Updated
- Oct 13, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-345
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
wolfSSH does not validate that the ECDSA curve identifier in the KEXDH_REPLY host key blob matches the negotiated algorithm. An active man-in-the-middle attacker can substitute the host key blob with a different ECDSA curve, allowing the client to import the key on the wrong curve and signature verification to pass. Exploitation requires an active MitM position and a lax public key check callback.
Show the original NVD text
wolfSSH does not validate that the ECDSA curve identifier in a KEXDH_REPLY host key blob matches the algorithm negotiated during key exchange. In ParseECCPubKey() (src/internal.c), the blob's algorithm string is used to derive the curve via NameToId/wcPrimeForId without checking against the negotiated ssh->handshake->pubKeyId, and the RFC 5656 curve identifier string is discarded via GetSkip() rather than compared. An active network man-in-the-middle attacker can substitute a host key blob containing a different ECDSA curve, causing the client to import the key on the wrong curve. Because the attacker controls the private key for the substituted curve, signature verification passes. Exploitation requires an active MitM position and a lax public key check callback (e.g., TOFU, algorithm-name-only check, or fingerprint match against the parsed key).
What to do
Patch available · fixed versions: 1.6.0
Update wolfSSH to version 1.6.0 or later to properly validate the ECDSA curve during key exchange.
- Apply the vendor's security update for Wolfssh.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| wolfssh | wolfssh | < 1.6.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Mitigation Vendor Advisory