CVE-2026-83742
wstrncat() unsigned integer underflow leads to an off-by-one null write in wolfSSH on non-Windows platforms
Check your servers for CVE-2026-83742
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-83742 affects wolfssh, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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/AU:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity low, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.43%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 39.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 7 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-121 Stack-based Buffer Overflow
- CWE-191 Integer Underflow (Wrap or Wraparound)
- CWE-193 Off-by-one Error
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| wolfSSH |
affected from 1.4.11 up to and including 1.5.0 (unaffected from 1.6.0)
Other versions: unaffected
|
Is my server affected?
Find the installed version of wolfssh and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i wolfssh
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-83742 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-83742RHEL, Rocky, Alma, Fedora
rpm -q wolfssh
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-83742Alpine
apk list --installed | grep -i wolfsshWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-83742
trivy image --scanners vuln IMAGE | grep CVE-2026-83742
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix PR #1084 github.com · patch
- Fix commit 822e4464 (guard the free space calculation in wstrncat) github.com · patch
- Fix commit 513e52b1 (bounded scan replacing strlen in wstrncat) github.com · patch
- Hardening commit fbc7cd88 (wolfSSH_RealPath length check and append bounds) github.com · patch
Source: the record CVE-2026-83742 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse