Home / wolfSSL Inc. / wolfSSH / CVE-2026-84897
CVE-2026-84897: is it exploited, and which versions of wolfSSL Inc. wolfSSH are affected and fixed?
CVE-2026-84897 is an incomplete Internal State Distinction vulnerability in wolfSSL Inc. wolfSSH. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: wolfSSH from 1.2.0 through 1.5.0 (CVE record by wolfSSL). Fixed in 1.6.0 (CVE record by wolfSSL). Severity: Medium (6.9, CVSS 4.0, from wolfSSL).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:06 UTC.
What is CVE-2026-84897?
wolfSSH server accepts server-to-client DH group exchange messages from an unauthenticated client, causing pre-authentication primality-test CPU exhaustion and key exchange role confusion
src/internal.c in wolfSSL wolfSSH through 1.5.0 admits the server-to-client Diffie-Hellman group exchange messages SSH_MSG_KEX_DH_GEX_GROUP (31) and SSH_MSG_KEX_DH_GEX_REPLY (33) when a server receives them from an unauthenticated client. IsMessageAllowedServer() applies no direction check to the key exchange message range: when the peer is keying and no particular message is expected, which is the state a server is in for the whole window after it processes the client's KEXINIT because nothing sets handshake->expectMsgId there, the function falls out of its expectation branch without a verdict and reaches a numeric bound that admits every message id from 30 through 34. A client that negotiates diffie-hellman-group-exchange-sha256 and then sends message 31 makes the server run the client-side handler DoKexDhGexGroup(), which validates the attacker-supplied group with two 8-round Miller-Rabin primality tests, one on p and one on (p-1)/2, on a value of up to 8192 bits. The handler then returns success: the server stores the attacker's prime and generator, generates a Diffie-Hellman key pair in the attacker's group, and sends the client-role message SSH_MSG_KEX_DH_GEX_INIT (32) back to the attacker. Published RFC 3526 safe primes are the worst-case input and cost the attacker nothing to obtain. The primality validation was added in 1.5.0; versions from 1.2.0 through 1.4.22 admit the same message and enter the same client-role path without the primality cost. Message 33 is admitted as well, but on a server it is rejected before any cryptography because no public key check callback is registered, so it carries no comparable cost. Builds that define WOLFSSH_NO_DH_GEX_SHA256, which is implied by WOLFSSH_NO_DH or NO_SHA256, are unaffected.
From the CVE record by wolfSSL, last updated October 7, 2026, 18:37 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| wolfSSL Inc. | wolfSSH | from 1.2.0 through 1.5.0 | 1.6.0 |
As the CVE record by wolfSSL states it, last updated October 7, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| wolfssh | wolfssh | from 1.2.0 before 1.6.0 | application |
NVD analysis (status Analyzed), last modified October 13, 2026, 14:27 UTC.
How severe is CVE-2026-84897?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.9 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/AU:Y | wolfSSL |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-84897 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, October 7, 2026)
- EPSS
- 0.48% probability of exploitation activity in the next 30 days, percentile 43.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-372 Incomplete Internal State Distinction
- CWE-405 Asymmetric Resource Consumption (Amplification)
- CWE-400 Uncontrolled Resource Consumption
Is there a workaround? (from the CVE record)
Build wolfSSH with WOLFSSH_NO_DH_GEX_SHA256 defined so that diffie-hellman-group-exchange-sha256 is neither offered nor accepted, which removes the message 31 dispatch path entirely. Where group exchange must stay available, lowering WOLFSSH_DEFAULT_GEXDH_MAX reduces the size of the value a peer can submit for primality testing and so the cost of a single packet, but it does not stop a server from accepting the message.
Where are the vendor advisories and references?
- Fix PR #1221 patch
- Fix commit a472f1ee (reject the KEX replies a server never receives) patch
- RFC 4419 sections 3 and 5 (SSH_MSG_KEX_DH_GEX_GROUP and SSH_MSG_KEX_DH_GEX_REPLY are sent by the server) technical-description
- RFC 3526 (published MODP safe primes usable as the worst-case input) technical-description
Who found and reported it?
- Abdullah Al Ishtiaq, Kai Tu, Matthew Carter, Xiaotian Zhou, Ananna Rahman, Yilu Dong, Tianwei Yu, Ali Ranjbar, Syed Rafiul Hussain (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- September 2, 2026
- Published
- October 7, 2026, 02:42 UTC
- CVE record updated
- October 7, 2026, 18:37 UTC by wolfSSL
- NVD
- Analyzed, last modified October 13, 2026, 14:27 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect wolfSSH?
- Oct 7, 2026CVE-2026-83742 wolfSSL Inc. wolfSSH: integer underflow
- Oct 7, 2026CVE-2026-83540 wolfSSL wolfSSH: authentication bypass (improper authentication)
- Oct 7, 2026CVE-2026-81535 wolfSSL Inc. wolfSSH: missing authorization
- Oct 7, 2026CVE-2026-16516 wolfSSL Inc. wolfSSH: data authenticity not verified
- Apr 20, 2026CVE-2026-0930 wolfSSL wolfSSH: buffer Over-read
- Jan 6, 2026CVE-2025-15382 wolfSSL wolfSSH: out-of-bounds read
- Jan 6, 2026CVE-2025-14942 wolfSSL wolfSSH: authentication bypass (improper authentication)
- Oct 21, 2025CVE-2025-11625 wolfSSL wolfSSH: authentication bypass (improper authentication)
Questions about CVE-2026-84897
Is CVE-2026-84897 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.48% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of wolfSSL Inc. wolfSSH are affected by CVE-2026-84897?
wolfSSH from 1.2.0 through 1.5.0, per the CVE record by wolfSSL. The tables above give every range the sources list.
Which version fixes CVE-2026-84897?
1.6.0, per the CVE record by wolfSSL. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-84897?
Medium (6.9, CVSS 4.0, from wolfSSL). The severity table above shows each score with its source.
Where is the official record of CVE-2026-84897?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.