CVE-2026-16516: CWE-345 Insufficient Verification of Data Authenticity in wolfSSL Inc. wolfSSH
Description
wolfSSH contains a vulnerability where it does not verify that the ECDSA curve identifier in a host key blob matches the algorithm negotiated during key exchange. This allows an active man-in-the-middle attacker to substitute a host key blob with a different ECDSA curve, causing the client to import the key on the wrong curve and accept a malicious key. Exploitation requires an active MitM position and a lax public key check callback. The vulnerability affects wolfSSH versions prior to 1.6.0.
CVSS v4.0
Score 9.0critical
Affected software
wolfSSL Inc.
wolfSSH
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in wolfSSH (CVE-2026-16516) arises from insufficient verification of data authenticity (CWE-345). Specifically, in the ParseECCPubKey() function, the ECDSA curve identifier in the KEXDH_REPLY host key blob is not validated against the negotiated algorithm during key exchange. The algorithm string from the blob is used to derive the curve without cross-checking with the negotiated public key ID, and the RFC 5656 curve identifier string is discarded rather than compared. This flaw enables an active man-in-the-middle attacker to substitute a host key blob containing a different ECDSA curve. Because the attacker controls the private key for the substituted curve, signature verification succeeds, potentially allowing the attacker to impersonate the host. Exploitation requires an active MitM position and a weak public key verification callback such as trust-on-first-use (TOFU), algorithm-name-only checks, or fingerprint matching against the parsed key.
Potential Impact
An active network man-in-the-middle attacker can exploit this vulnerability to substitute the host key blob with one using a different ECDSA curve that the client accepts, enabling the attacker to impersonate the host. This compromises the authenticity of the key exchange and can lead to interception or manipulation of SSH sessions. The vulnerability requires an active MitM position and a lax public key verification callback on the client side.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should ensure strict public key verification callbacks that validate both the algorithm and key fingerprint, avoiding lax checks such as TOFU or algorithm-name-only verification. Monitoring vendor advisories for updates and applying official patches once released is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- wolfSSL
- Date Reserved
- 2026-07-21T22:09:07.190Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac5b3212cdf04f65605f02c
Added to database: 10/07/2026, 02:49:05 UTC
Last enriched: 10/07/2026, 03:03:17 UTC
Last updated: 10/07/2026, 03:03:52 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.