wolfSSH Fixes 5 Security Flaws Including Critical SSH Authentication Bypass Vulnerability

wolfSSL has released wolfSSH 1.6.0, addressing five security vulnerabilities spanning server authentication, Windows privilege escalation, key exchange, port forwarding, and SFTP memory handling.

Published on October 6, 2026, the update fixes one critical, one high, and three medium severity flaws. The release also introduces stricter security defaults and additional cryptographic capabilities.

The most serious vulnerability, CVE-2026-16516, affects wolfSSH versions up to and including 1.5.0 and could allow an active attacker positioned between a client and server to impersonate the server.

wolfSSH Fixes 5 Security Flaws

However, exploitation also requires a lax public key verification callback in the application integrating wolfSSH, making application authentication policy an important part of the attack conditions.

The critical flaw stems from missing validation of the ECDSA curve contained in a server’s host key blob. wolfSSH did not verify that this curve matched the algorithm negotiated during SSH key exchange.

Consequently, an attacker could substitute a host key using another curve and successfully complete signature verification with an attacker-controlled private key.

This is a server identity verification weakness affecting clients, rather than an unconditional bypass of user authentication on every wolfSSH server.

The fix, implemented in pull request #1022, addresses the curve mismatch. wolfSSL credited researcher zhangph, known on GitHub as afldl, for reporting the issue.

CVE-2026-83540 affects the Windows implementation of wolfSSHd from versions 1.4.15 through 1.5.0. Concurrent connections shared an authentication context containing a Windows logon token.

Because password and public key authentication both wrote to this shared context, a legitimate lower-privileged user could become logged in as another, more privileged account. Non-Windows builds are unaffected.

The medium severity CVE-2026-84897 concerns incorrect handling of Diffie–Hellman group exchange messages. A server accepted messages intended exclusively for transmission by servers, including SSH_MSG_KEX_DH_GEX_GROUP and SSH_MSG_KEX_DH_GEX_REPLY, from unauthenticated clients.

An attacker negotiating diffie-hellman-group-exchange-sha256 could trigger expensive primality testing and cause the server to continue key exchange in the client role. The flaw affects versions 1.2.0 through 1.5.0, although the primality testing cost applies from 1.5.0.

Testing a supplied 4096-bit prime consumed approximately half a second of CPU time per 1 KB packet. Builds defining WOLFSSH_NO_DH_GEX_SHA256 are unaffected. CVE-2026-81535 affects versions 1.4.8 through 1.5.0 compiled with –enable-fwd.

wolfSSL stated that unauthorized forwarded-tcpip channel requests could bypass the forwarding policy callback, while clients accepted channels for forwards they never requested. A peer could therefore trigger buffer allocation for unauthorized forwarding channels.

CVE-2026-83742 affects non-Windows builds from 1.4.11 through 1.5.0. Incorrect bounds calculations in wolfSSH_RealPath() could let an authenticated attacker submit an SFTP path that writes a terminating NUL one byte beyond a stack buffer, corrupting adjacent data and crashing the process.

Organizations should upgrade affected integrations to version 1.6.0 and validate application compatibility. Strict key exchange is now enabled by default, RSA authentication keys require at least 2048 bits, and wolfSSL must be built with –enable-wolfssh.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories