CVE-2026-16516
published critical CVSS 4.0 · 9.0wolfSSH ECDSA host key curve not validated against negotiated algorithm
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| wolfSSL Inc. | — | wolfSSH0 through 1.5.0 (affected · semver); changes: unaffected at 1.6.0 · Other versions: unaffected | Version-specific | Not stated | wolfSSL |
| Alpine Linux | edge | wolfssh | Fixed | 1.6.0-r0 | Package fix record |
| Alpine Linux | v3.24 | wolfssh | Fixed | 1.6.0-r0 | Package fix record |
Description
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.0 / 10
- Severity
- critical
- Provider
- wolfSSL · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| wolfSSL Inc. | wolfSSH | 0 through 1.5.0 (affected · semver); changes: unaffected at 1.6.0Default: unaffected | wolfSSL · cna |
Weaknesses
1- CWE-345 CWE-345 Insufficient Verification of Data Authenticity
References
2- https://github.com/wolfSSL/wolfssh/commit/31d13697a608fa1bf9eec11aa6eff1503ade836f
- ECDSA host key curve substitution - blob curve not validated against negotiated algorithm https://github.com/wolfSSL/wolfssh/issues/1012
Provider assertions
2wolfSSL · cna
wolfSSH ECDSA host key curve not validated against negotiated algorithm
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 130d5fa446f5122aacd5738ba4c8ec002612976f8f42a7c57252b9497be1693d
- Ingested
- 07 Oct 2026, 11:56:50 UTC
- Source record
- Official CVE record