wolfSSH
CVE-2025-14942
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStand up malicious SSH server or MITM position
-
DeliveryVictim wolfSSH client initiates connection
-
ExploitManipulate key-exchange state machine
-
ExecutionForce cleartext password or skip user-auth
-
ImpactCapture credentials / bypass authentication
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the victim to run a wolfSSH CLIENT application (version 1.4.21 or earlier) that connects to an attacker-controlled SSH server or a connection subject to an on-path (MITM) attacker; the attacker then manipulates the SSH key-exchange state machine to leak the client's password, force a bogus signature, or skip user authentication. Limiting factors: the attacker must hold the server or MITM position (cannot be exploited by merely reaching a listening service), the client must actively initiate a connection (UI:P/UI:R), and only deployments using wolfSSH as an SSH client are at material risk - server-side wolfSSH shares the defect but has no demonstrated attack. Remediation: apply PR #855 fix, update wolfSSH, and rotate any credentials used by affected clients. |
| Impact | Signals conflict sharply between headline severity and real-world exploitation likelihood. The vendor CVSS 4.0 base score is 9.4 (critical) with VC:H/VI:H/VA:H and subsequent-system SC:H/SI:H/SA:H, but EPSS is only 0.06% (20th percentile), there is no CISA KEV listing, and no public exploit code has been identified. Crucially, this is a CLIENT-side vulnerability: the CVSS vector's UI:P (passive user interaction) and the description confirm exploitation requires a wolfSSH CLIENT to connect to an attacker-controlled or man-in-the-middle SSH server, at which point the manipulated key-exchange state machine can leak the client's password in cleartext, force a bogus signature, or skip user authentication entirely (CWE-287). This is not a remotely-sprayable server flaw - the attacker must occupy the server/MITM position and induce the victim client to connect, which sharply limits mass exploitation and matches the low EPSS. I assess the vendor's VA:H and all subsequent-system (SC/SI/SA:H) metrics as overstated: the described impacts are credential disclosure and authentication bypass, not availability loss, so the true severity is high-but-targeted rather than critical-and-wormable. Real priority is moderate: patch promptly on embedded/IoT clients, but this is not an internet-facing drop-everything issue. |
| Exploit ScenarioDerived | An attacker operating a malicious SSH endpoint (or performing an on-path MITM against SSH traffic) waits for a wolfSSH client (v1.4.21 or earlier) to connect. By manipulating the key-exchange state machine during the handshake, the attacker coerces the client into transmitting its password in cleartext or into skipping user authentication, harvesting the credential or bypassing auth. No public exploit code or KEV entry exists, but the flaw was found by academic SSH state-machine researchers (Valeo / Telecom SudParis), implying a reproducible protocol-level technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 30, 2026
Improper authentication handling in the wolfSSH key-exchange state machine (versions 1.4.21 and earlier) allows an attacker to manipulate a connecting client into leaking its password in cleartext, emitting a bogus signature, or skipping user authentication entirely. The flaw is remotely reachable and requires no authentication (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P), but exploitation is conditional: the attacker must operate the SSH server or hold an on-path (MITM) position, and the victim must actively launch a wolfSSH client application and connect. Our independent assessment scores this as CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N, reflecting high confidentiality and integrity impact scoped to the client; no public exploit code identified at time of analysis, and EPSS is low at 0.06% (20th percentile), so headline severity is not matched by observed exploitation activity. WolfSSH server applications share the same defect but have no demonstrated attack, and the vendor recommends updating clients, servers, and rotating any credentials used.
Earlier versions of this analysis (1)
wolfSSH key exchange state machine flaws enable password leakage in cleartext, signature forgery, and authentication bypass.
RemediationAI
Apply the upstream fix in wolfSSL/wolfssh pull request #855 (https://github.com/wolfSSL/wolfssh/pull/855) and update wolfSSH to the resulting release; the change is an upstream fix available as a PR/commit, and a released patched version number is not independently confirmed in the provided data. Because credentials may already have been exposed, rotate all passwords, SSH private keys, and certificates used by any wolfSSH client that ran version 1.4.21 or earlier, and update server-side wolfSSH deployments even though no server attack is demonstrated. Until a patched build is deployed, specific compensating controls are: restrict wolfSSH client usage to explicitly trusted SSH servers with verified host keys (loading a trusted CA via the client's CA-loading API narrows the MITM window but does not repair the state machine), disallow connections to unknown or user-supplied SSH endpoints, and, where operationally feasible, substitute an alternative SSH client for outbound connections - at the cost of migrating scripts and configurations. Key-based authentication alone does not eliminate exposure, since the defect permits authentication to be skipped or a bogus signature to be accepted, so credential rotation and host-key verification should be treated as complementary rather than sufficient. No vendor-released patch version is identified in the supplied data, so do not assume a specific fixed release number; confirm the fixed commit or tag from the wolfSSL project before closing out.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is classified CWE-287 (Improper Authentication) and lives in the SSH key-exchange and authentication state machine implemented by the wolfSSH library (CPE cpe:2.3:a:wolfssh:wolfssh:*:*:*:*:*:*:*:*, covering 1.4.21 and earlier). SSH negotiates algorithms and session keys during KEXINIT/key-exchange before authentication; if the library's state transitions are not strictly validated against the protocol, a malicious peer can drive the client into states it should never enter - e.g., accepting an authentication-success message without a completed exchange, or coercing the client into signing attacker-chosen data or transmitting credentials over a channel the attacker can observe. The upstream fix in PR #855 shows hardening at two layers: in apps/wolfssh/common.c, the patch introduces userPublicKeyAlloc/userPrivateKeyAlloc tracking flags and adds reset logic (restoring buffers, zeroing sizes, clearing the key type) so stale or improperly retained key material cannot persist across client state changes, and the free paths are corrected; in apps/wolfssh/wolfssh.c, the readPeer loop is rewritten to capture error state (readError), recognize terminal conditions such as WS_CBIO_ERR_CONN_CLOSE, WS_SOCKET_ERROR_E, and WS_MSGID_NOT_ALLOWED_E, break out of the loop via a stop flag when such errors occur, and release the mutex on unexpected paths. These changes address error-handling and state-control gaps that let the peer prematurely terminate or redirect the handshake, which is the mechanism behind the password leak, bogus signature, and authentication-skip outcomes. Because the flaw is triggered from the peer side of the connection, only deployments where wolfSSH acts as the SSH client are materially exposed; the same code path exists server-side but no working attack has been demonstrated there.
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:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/U:Red
Network attack by a malicious/MITM server requiring the victim client to connect (UI:R), no prior auth (PR:N); high confidentiality (password leak) and integrity (auth bypass) impact, no availability impact.
Primary rating from Vendor (wolfssl).
CVSS VectorVendor: wolfssl
Lifecycle Timeline
3DescriptionCVE.org
wolfSSH’s key exchange state machine can be manipulated to leak the client’s password in the clear, trick the client to send a bogus signature, or trick the client into skipping user authentication. This affects client applications with wolfSSH version 1.4.21 and earlier. Users of wolfSSH must update or apply the fix patch and it’s recommended to update credentials used. This fix is also recommended for wolfSSH server applications. While there aren’t any specific attacks on server applications, the same defect is present. Thanks to Aina Toky Rasoamanana of Valeo and Olivier Levillain of Telecom SudParis for the report.
Executive ViewAI
wolfSSH client versions 1.4.21 and earlier contain a critical authentication flaw that can expose credentials or bypass user authentication when connecting to a malicious or intercepted SSH server. Organizations using these clients for remote administration, automation, or third-party connectivity face potential credential compromise and integrity loss in affected sessions, although no public exploit identified at time of analysis and EPSS is low. Leadership should prioritize inventory, replacement, and monitoring because no vendor-released patch identified at time of analysis and exploitation, while conditional, could affect high-value access.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting affected wolfSSH clients to trusted SSH servers, enforcing strict host-key verification and certificate pinning, avoiding untrusted networks and MITM-prone paths, replacing with an alternative SSH client where possible, rotating credentials and using MFA or short-lived credentials, monitoring for cleartext credential leakage, bogus signatures, and authentication bypass, and segmenting networks while restricting outbound SSH.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
WolfSSH v1.4.7 was discovered to contain an integer overflow via the function wolfSSH_SFTP_RecvRMDIR. Rated critical sev
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
Host key substitution in wolfSSH clients using ECDSA host keys lets an unauthenticated, network-positioned attacker have
Windows logon token reuse in wolfSSHd versions 1.4.15 through 1.5.0 allows an authenticated low-privilege user to impers
Pre-authentication CPU exhaustion affects wolfSSH servers through 1.5.0 that are built with Diffie-Hellman group-exchang
wolfSSH through 1.5.0, when compiled with the --enable-fwd (WOLFSSH_FWD) TCP/IP forwarding option, fails to apply its fo
An authenticated remote attacker with a valid SSH session can trigger a one-byte out-of-bounds stack write in wolfSSH v1
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
NVD
CVE.org
EPSS
GitHub
Exploit-DB