PoC Monitor
← All CVEs
CVE-2026-16516published 7 Oct 2026 02:38 UTCData: JSON · API

wolfSSL Inc. wolfSSH

wolfSSH ECDSA host key curve not validated against negotiated algorithm

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).

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.0critical · scored by CNA · CWE-345
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

wolfSSL Inc. wolfSSH
  • <= 1.5.0

Fixed in 1.6.0

Mitigation

Upgrade wolfSSH to 1.6.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published7 Oct 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.