CVE-2026-83742Wolfssh stack-based buffer overflow
CVSS score
5.3
Medium
CVSS 4.0 from wolfssl.com
Exploit probability (EPSS)
0.43%
0.43% chance of exploitation in the next 30 days, higher than 38.4% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
Unsigned integer underflow in wstrncat() in src/port.c in wolfSSL wolfSSH from v1.4.11 through v1.5.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 by sending a crafted SFTP path. wolfSSH_RealPath() in src/ssh.c appends each path component with a remaining-size bound (outSz - curSz) rather than the full destination size, so once the accumulated path reaches half the output buffer the size_t computation n - strlen(s1) - 1 wraps to near SIZE_MAX. The strncat() call is then effectively unbounded and copies the whole component; when that component exactly fills the remainder of the buffer, its terminating null is written one byte past the end. The caller's own length check keeps the copied data inside the buffer, so the overflow is limited to that single null byte, which may corrupt an adjacent stack value and crash the process. Applications that call the public wolfSSH_RealPath() with an output buffer smaller than the input path are additionally exposed to an unbounded copy, because the word32 expression outSz - segSz in that length check also wraps.
Source: NVD · CNA: facts@wolfssl.com
How to fix it, step by step
Check whether you're affected
Find every system running Wolfssh and compare its version with the affected versions.
Update to a fixed version
- Update Wolfssh to 1.6.0 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:N/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| wolfssh Wolfssh | ≥ 1.4.11, < 1.6.0 |
| wolfssl WolfSSH | ≥ 1.4.11, ≤ 1.5.0 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-83742 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-83742?
CVE-2026-83742 has a CVSS 4.0 base score of 5.3 (medium).
Which versions are affected?
Wolfssh Wolfssh (≥ 1.4.11, < 1.6.0), Wolfssl WolfSSH (≥ 1.4.11, ≤ 1.5.0)
Is there a patch for CVE-2026-83742?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.