Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain active MitM position on SSH path
-
DeliveryIntercept ECDSA key exchange (KEXDH_REPLY)
-
ExploitSubstitute host key blob with attacker curve
-
ExecutionClient imports key on wrong curve, signature verifies
-
PersistLax callback accepts key, server impersonated
-
ImpactFull MitM of SSH session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Two concrete prerequisites must BOTH hold: (1) the attacker occupies an active network man-in-the-middle position able to modify the KEXDH_REPLY during key exchange, and (2) the wolfSSH client is deployed with a weak public-key verification callback - specifically trust-on-first-use (TOFU), an algorithm-name-only check, or fingerprint matching performed against the already-parsed (attacker-influenced) key. The flaw is client-side and affects only ECDSA host key algorithms. Limiting factors that reduce real-world risk: a strict callback comparing the full exact host-key bytes against a pre-provisioned known-good key defeats the attack, passive eavesdroppers cannot exploit it, and non-ECDSA host keys are unaffected. |
| Impact | The vendor CVSS 4.0 base score of 9.0 (Critical) overstates realistic priority for most fleets because exploitation is doubly gated: it needs both an active on-path man-in-the-middle position (reflected as AT:P in the 4.0 vector / AC:H in a 3.1 mapping) and a client deliberately configured with a lax host-key check callback (TOFU, algorithm-name-only, or fingerprint-against-parsed-key). No EPSS score was supplied and the CVE is not on CISA KEV, so there is no probabilistic or confirmed signal of mass exploitation; status is 'no public exploit identified at time of analysis'. The flaw is real and well-documented (root cause confirmed in the source diff of ParseECCPubKey() and an upstream fix with regression tests), but under an SSVC lens it reads as targeted-and-conditional rather than automatable or wormable: an attacker must already control the network path and the victim must have weakened verification. Note a signal tension worth flagging - the vendor scored confidentiality low (VC:L) even though a successful host-key substitution yields full server impersonation and MitM of the session, which arguably warrants higher confidentiality impact; defenders should treat the integrity/authentication impact (VI:H/SI:H) as the dominant risk. |
| Exploit ScenarioDerived | An attacker positioned on the network path between a wolfSSH client and server (e.g., rogue Wi-Fi, ARP/DNS spoofing, or a compromised upstream router) intercepts the key exchange and replaces the server's ECDSA host key blob with one on a different curve for which the attacker holds the private key. Because ParseECCPubKey() derives the curve from the attacker-controlled blob rather than the negotiated algorithm, the substituted key verifies successfully and, if the client uses a lax public-key check callback, the attacker completes the handshake and transparently proxies the SSH session. No public exploit code was identified, though the upstream commit includes detailed test vectors demonstrating the parsing weakness. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Host key substitution in wolfSSH clients using ECDSA host keys lets an unauthenticated, network-positioned attacker have the client import an attacker-chosen public key, because ParseECCPubKey() derives the curve from the untrusted KEXDH_REPLY blob rather than from the negotiated host key algorithm, so the attacker's own signature over the substituted key verifies successfully. Exploitation is doubly gated: the attacker must hold an active man-in-the-middle position able to rewrite the key exchange reply, and the client must be deployed with a lax public-key verification callback such as trust-on-first-use, an algorithm-name-only check, or fingerprint matching performed against the already-parsed key. No public exploit code has been identified at time of analysis; the vendor's CVSS 4.0 score of 9.0 (Critical) overstates realistic urgency for most fleets, and our independent assessment maps the same defect to CVSS 3.1 7.4 (High) with AC:H.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed, though vendor metadata states a patch is available from wolfSSL. The authoritative fix is wolfSSH commit 31d13697a608fa1bf9eec11aa6eff1503ade836f, which enforces that both the algorithm string and the RFC 5656 curve identifier in the host key blob match ssh->handshake->pubKeyId; rebuild and relink wolfSSH (and any vendored copies) against that revision or the next tagged release containing it, and consult https://github.com/wolfSSL/wolfssh/issues/1012 and the corresponding vendor advisory for the release vehicle. Where an immediate upgrade is not possible, the single most effective compensating control is to replace any TOFU, algorithm-name-only, or fingerprint-against-parsed-key callback with a strict callback that byte-compares the entire received host key blob against a pre-provisioned known-good key for the target host; this defeats the attack completely but requires distributing and rotating pinned keys, so unknown or ephemeral hosts will fail to connect. A second option is to remove ECDSA host key algorithms from the client's algorithm negotiation list (for example by restricting the allowed host key algorithms to ssh-ed25519 or rsa-sha2 variants), which eliminates the vulnerable code path at the cost of losing ECDSA host key compatibility and interoperability with ECDSA-only servers. Disabling ECDSA entirely via the WOLFSSH_NO_ECDSA build option carries the same compatibility trade-off. Finally, treat any host key change as an alert rather than a prompt to accept, and log key-exchange negotiation details so curve-downgrade attempts are visible.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
wolfSSH is a lightweight SSH client/server library from wolfSSL, and this defect is a CWE-345 (Insufficient Verification of Data Authenticity) failure in its SSH key exchange parsing. Under RFC 5656, an ECDSA host key blob carries three fields: the public key algorithm name (for example 'ecdsa-sha2-nistp256'), the curve identifier ('nistp256', 'nistp384', 'nistp521'), and the encoded EC point. Before the fix, src/internal.c:ParseECCPubKey() called NameToId() and wcPrimeForId() on the algorithm string taken straight from the attacker-controllable blob, and passed over the RFC 5656 curve identifier with GetSkip() instead of comparing it to the curve implied by the negotiated algorithm in ssh->handshake->pubKeyId. The consequence is a curve-confusion/downgrade primitive: an on-path attacker could answer a nistp384 negotiation with a nistp256 blob (or otherwise swap curves), and because the attacker holds the private key for whatever curve the client imports, host key signature verification succeeds against a key the legitimate server never presented. The upstream commit 31d13697a608fa1bf9eec11aa6eff1503ade836f closes this by removing the blob as a source of trust, deriving the curve from ssh->handshake->pubKeyId via IdToName()/wcPrimeForId(), rejecting a mismatched algorithm string with WS_INVALID_ALGO_ID, and now reading the curve name with GetStringRef() and comparing it to PrimeNameForId() output, rejecting mismatches with WS_INVALID_PRIME_CURVE. The same commit adds an exported test hook wolfSSH_TestParseECCPubKey() plus unit vectors covering valid blobs, algorithm-name mismatch, downgrade of a negotiated nistp384, curve-name mismatch, corrupt point format, and truncation.
Know when Wolfssh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
No credentials needed (PR:N), but an active MitM position plus a lax host-key callback make it AC:H; server impersonation yields full session read/write (C:H/I:H), no availability impact.
Primary rating from Vendor (wolfSSL).
CVSS VectorVendor: wolfSSL
DescriptionCVE.org
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).
Executive ViewAI
wolfSSH clients using ECDSA host keys with lax public-key verification are vulnerable to host key substitution, enabling a network-positioned attacker to impersonate SSH servers and potentially intercept or alter sensitive sessions. Patch available per vendor advisory and no public exploit identified at time of analysis. Leadership should prioritize patching for any high-value or internet-exposed SSH client deployments, as successful exploitation could undermine trust in remote administration channels and lead to data exposure or unauthorized access.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in wolfSSH Authentication and Protocol Flaws
View all 5WolfSSH v1.4.7 was discovered to contain an integer overflow via the function wolfSSH_SFTP_RecvRMDIR. Rated critical sev
Improper authentication handling in the wolfSSH key-exchange state machine (versions 1.4.21 and earlier) allows an attac
Authentication bypass in wolfSSH 1.4.20 and earlier clients allows a malicious or man-in-the-middle SSH server to skip p
A vulnerability was found in wolfSSH's server-side state machine before versions 1.4.17. Rated critical severity (CVSS 9
A heap buffer over-read vulnerability exists in the wolfSSH_CleanPath() function in wolfSSH. An authenticated remote att
Out-of-bounds read in wolfSSHd on Windows allows authenticated users to leak adjacent stack memory via malformed termina
The wolfSSH SFTP server component contains a stack-based out-of-bounds write (CWE-787) that can be triggered by an authe
EUVD-2026-94161
GHSA-c487-h25j-24jq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB