Skip to main content

wolfSSH CVE-2025-14942

CRITICAL
Improper Authentication (CWE-287)
2026-01-06 facts@wolfssl.com
9.4
CVSS 4.0 · Vendor: wolfssl
View

Attack ChainAIDerived

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

  1. Access
    Stand up malicious SSH server or MITM position
  2. Delivery
    Victim wolfSSH client initiates connection
  3. Exploit
    Manipulate key-exchange state machine
  4. Execution
    Force cleartext password or skip user-auth
  5. Impact
    Capture 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Mar 12, 2026 - 21:54 CVSS 9.8

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

Vendor (wolfssl) PRIMARY 9.4 CRITICAL
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/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
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

3
Analysis Updated
Sep 30, 2026 - 22:32 vuln.today
v2 - CVSS changed
CVSS changed
Sep 30, 2026 - 22:23 NVD
9.8 (CRITICAL) 9.4 (CRITICAL)
CVE Published
Jan 06, 2026 - 18:15 nvd
CRITICAL 9.8

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 80% exploitable
Prevalence
Low
Niche embedded/IoT SSH library, not a default OS or enterprise SSH stack
Data Quality
4 sources
Confidence: Medium

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 No
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:wolfssh:wolfssh:*:*:*:*:*:*:*:*
CVE-2022-32073 CRITICAL
9.8 Jul 13

WolfSSH v1.4.7 was discovered to contain an integer overflow via the function wolfSSH_SFTP_RecvRMDIR. Rated critical sev

CVE-2025-11625 CRITICAL
9.4 Oct 21

Authentication bypass in wolfSSH 1.4.20 and earlier clients allows a malicious or man-in-the-middle SSH server to skip p

CVE-2024-2873 CRITICAL
9.1 Mar 25

A vulnerability was found in wolfSSH's server-side state machine before versions 1.4.17. Rated critical severity (CVSS 9

CVE-2026-16516 CRITICAL
9.0 Oct 07

Host key substitution in wolfSSH clients using ECDSA host keys lets an unauthenticated, network-positioned attacker have

CVE-2026-83540 HIGH
7.7 Oct 07

Windows logon token reuse in wolfSSHd versions 1.4.15 through 1.5.0 allows an authenticated low-privilege user to impers

CVE-2026-84897 MEDIUM
6.9 Oct 07

Pre-authentication CPU exhaustion affects wolfSSH servers through 1.5.0 that are built with Diffie-Hellman group-exchang

CVE-2026-81535 MEDIUM
6.3 Oct 07

wolfSSH through 1.5.0, when compiled with the --enable-fwd (WOLFSSH_FWD) TCP/IP forwarding option, fails to apply its fo

CVE-2026-83742 MEDIUM
5.3 Oct 07

An authenticated remote attacker with a valid SSH session can trigger a one-byte out-of-bounds stack write in wolfSSH v1

CVE-2025-15382 MEDIUM
5.1 Jan 06

A heap buffer over-read vulnerability exists in the wolfSSH_CleanPath() function in wolfSSH. An authenticated remote att

CVE-2026-0930 LOW
2.3 Apr 20

Out-of-bounds read in wolfSSHd on Windows allows authenticated users to leak adjacent stack memory via malformed termina

CVE-2025-11624 LOW
1.8 Oct 21

The wolfSSH SFTP server component contains a stack-based out-of-bounds write (CWE-787) that can be triggered by an authe

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