CVE-2026-83742: CWE-191 Integer Underflow (Wrap or Wraparound) in wolfSSL Inc. wolfSSH
Description
CVE-2026-83742 is an integer underflow vulnerability in wolfSSL wolfSSH versions 1.4.11 through before 1.6.0 on non-Windows platforms. It occurs in the wstrncat() function in src/port.c, where an authenticated remote attacker can cause a single null byte to be written just past the end of a stack buffer by sending a specially crafted SFTP path. This can corrupt adjacent stack memory and potentially crash the process. The vulnerability arises from incorrect size calculations leading to an unbounded string concatenation. The overflow is limited to one null byte, and no known exploits are reported in the wild.
CVSS v4.0
Score 5.3medium
Affected software
wolfSSL Inc.
wolfSSH
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
An unsigned integer underflow in the wstrncat() function within src/port.c of wolfSSL wolfSSH (versions >=1.4.11 <1.6.0) on non-Windows platforms allows an authenticated remote attacker to write one out-of-bounds null byte past the end of a stack buffer. This happens because wolfSSH_RealPath() appends path components using a remaining-size bound (outSz - curSz) rather than the full buffer size. When the accumulated path length reaches about half the output buffer, the size_t calculation (n - strlen(s1) - 1) underflows to a very large value, causing strncat() to copy the entire component unchecked. If the component exactly fills the remainder of the buffer, the terminating null byte is written one byte beyond the buffer boundary. This can corrupt adjacent stack memory and cause a crash. Additionally, if wolfSSH_RealPath() is called with an output buffer smaller than the input path, an unbounded copy can occur due to a similar wraparound in length checks. The vulnerability requires authentication and no known exploits are reported.
Potential Impact
The vulnerability allows an authenticated remote attacker to cause a stack buffer overflow by writing a single null byte beyond the buffer boundary. This can corrupt adjacent stack memory and potentially crash the affected process. There is no indication of code execution or privilege escalation from the available data. The impact is limited to denial of service via process crash or memory corruption.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, avoid using vulnerable versions (>=1.4.11 <1.6.0) on non-Windows platforms or restrict authenticated user input to prevent crafted SFTP paths that could trigger the overflow. Monitor vendor communications for official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- wolfSSL
- Date Reserved
- 2026-08-31T22:49:43.798Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac5b6982cdf04f656075353
Added to database: 10/07/2026, 03:03:52 UTC
Last enriched: 10/07/2026, 03:18:45 UTC
Last updated: 10/07/2026, 03:18:57 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.