Skip to main content

wolfSSH CVE-2026-16516

| EUVDEUVD-2026-94161 CRITICAL
Insufficient Verification of Data Authenticity (CWE-345)
2026-10-07 wolfSSL GHSA-c487-h25j-24jq
9.0
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain active MitM position on SSH path
  2. Delivery
    Intercept ECDSA key exchange (KEXDH_REPLY)
  3. Exploit
    Substitute host key blob with attacker curve
  4. Execution
    Client imports key on wrong curve, signature verifies
  5. Persist
    Lax callback accepts key, server impersonated
  6. Impact
    Full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

wolfSSH 0 ≤1.5.0

Affected Packages

euvd wolfssh no fix

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

Vendor (wolfSSL) PRIMARY 9.0 CRITICAL
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
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
High
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche embedded/IoT SSH library, far smaller footprint than OpenSSH
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy