wolfSSH
CVE-2025-11624
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to wolfSSH SFTP server
-
ExploitOpen file to obtain handle
-
ExecutionSend packet with oversized handle field
-
ImpactTrigger bounded stack buffer overwrite
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated SSH/SFTP session to the wolfSSH SFTP server with a file handle already opened, after which the attacker sends a WRITE/READ/FSETSTAT (SSH_FXP) packet whose handle length field is greater than sizeof(WFD)/sizeof(HANDLE) yet less than or equal to WOLFSSH_MAX_HANDLE - the precise size window the pre-patch bounds check (sz > WOLFSSH_MAX_HANDLE only) failed to reject. Limiting factors: the attacker must be an authenticated SFTP client (PR:H per vendor), the corruption is bounded by WOLFSSH_MAX_HANDLE so impact stays Low, and only builds running the wolfSSH SFTP server component are affected. |
| Impact | This is a low-priority issue despite the CWE-787 (out-of-bounds write) classification. The signals are consistent and point toward low real-world risk: the vendor-assigned CVSS 4.0 vector scores only 1.8, driven down by PR:H (privileges required), AT:P (a specific attack requirement/condition must hold), and uniformly Low impact metrics (VC:L/VI:L/VA:L). EPSS is 0.37% (29th percentile), reinforcing low expected exploitation. There is no CISA KEV listing and no public exploit identified - the only GitHub reference is the fixing pull request (wolfSSH PR #834), not exploit code. The overwrite is inherently bounded: the malicious handle size must be larger than the real file-descriptor/handle storage but still smaller than WOLFSSH_MAX_HANDLE, which caps the scope of memory corruption and explains the Low (not High) impact ratings. One point to verify: the write occurs in SFTP RecvWrite/RecvRead/RecvFSetSTAT handlers reachable only after an authenticated SFTP session has opened a file handle, so exploitation is authenticated - treat the vendor's PR:H as possibly conservative (any authenticated SFTP user may suffice, i.e. PR:L). No conflict between KEV and EPSS exists here since neither indicates active exploitation. |
| Exploit ScenarioDerived | An authenticated user of a wolfSSH SFTP server opens a file to obtain a handle, then sends a crafted WRITE, READ, or FSETSTAT packet whose handle field is sized larger than the server's internal WFD/HANDLE storage but smaller than WOLFSSH_MAX_HANDLE, causing a bounded stack buffer overwrite. No public exploit has been identified; only the fixing pull request is available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
The wolfSSH SFTP server component contains a stack-based out-of-bounds write (CWE-787) that can be triggered by an authenticated SFTP client sending a READ, WRITE, or FSETSTAT request with a file-handle length larger than the internal WFD/HANDLE type but still within WOLFSSH_MAX_HANDLE. The pre-patch bounds check only rejected handles exceeding the maximum size, allowing adjacent stack memory to be corrupted with limited confidentiality, integrity, and availability impact (C:L/I:L/A:L). Exploitation requires an established SSH/SFTP session and an already-opened file handle; no public exploit identified at time of analysis, no CISA KEV confirmation, and EPSS is low at 0.37% (29th percentile).
RemediationAI
Apply the upstream fix in wolfSSL/wolfssh PR #834, which modifies src/wolfsftp.c to add exact handle-size equality checks (sz != sizeof(WFD) and sz != sizeof(HANDLE)) for the READ, WRITE, and FSETSTAT handlers. Because the provided data does not include a tagged release version, verify that your wolfSSH version incorporates this PR or build from the patched commit; monitor the GitHub PR and wolfSSH release notes for a versioned patch. If immediate patching is not possible, restrict SFTP access to trusted authenticated users, disable the wolfSSH SFTP server component if it is not required (for example, compile without SFTP server support or do not expose it on the network), or place the service behind strict network access controls. These compensating controls reduce exposure but do not eliminate the underlying stack overwrite, and disabling SFTP server functionality may break file-transfer workflows.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
wolfSSH is a lightweight SSH/SFTP library; its SFTP server handles SSH_FXP_READ, SSH_FXP_WRITE, and SSH_FXP_FSETSTAT packets by parsing a variable-length handle field. The vulnerable code in src/wolfsftp.c (functions wolfSSH_SFTP_RecvWrite, wolfSSH_SFTP_RecvRead, and wolfSSH_SFTP_RecvFSetSTAT) validated only that the handle size did not exceed WOLFSSH_MAX_HANDLE, but failed to require exact equality with the internal WFD or HANDLE type. A handle length between sizeof(WFD)/sizeof(HANDLE) and WOLFSSH_MAX_HANDLE passes the old check and overflows a stack buffer. The upstream fix in PR #834 adds sz != sizeof(WFD) or sz != sizeof(HANDLE) to the bounds check, rejecting any handle whose length does not match the expected internal type. The CPE cpe:2.3:a:wolfssh:wolfssh:*:*:*:*:*:*:*:* indicates that all wolfSSH versions are potentially affected unless they include this fix; only builds exposing the wolfSSH SFTP server component are vulnerable.
Know when Wolfssh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:L
Reachable only over an authenticated SFTP session (PR:L; vendor chose PR:H), attacker fully controls the handle size so AC:L, and the bounded overwrite yields only Low C/I/A.
Primary rating from Vendor (wolfssl).
CVSS VectorVendor: wolfssl
DescriptionCVE.org
Potential stack buffer overwrite on the SFTP server side when receiving a malicious packet that has a handle size larger than the system handle or file descriptor size, but smaller than max handle size allowed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Affected Products (CPE)CVE.org
WolfSSH v1.4.7 was discovered to contain an integer overflow via the function wolfSSH_SFTP_RecvRMDIR. Rated critical sev
Improper authentication handling in the wolfSSH key-exchange state machine (versions 1.4.21 and earlier) allows an attac
Authentication bypass in wolfSSH 1.4.20 and earlier clients allows a malicious or man-in-the-middle SSH server to skip p
A vulnerability was found in wolfSSH's server-side state machine before versions 1.4.17. Rated critical severity (CVSS 9
Host key substitution in wolfSSH clients using ECDSA host keys lets an unauthenticated, network-positioned attacker have
Windows logon token reuse in wolfSSHd versions 1.4.15 through 1.5.0 allows an authenticated low-privilege user to impers
Pre-authentication CPU exhaustion affects wolfSSH servers through 1.5.0 that are built with Diffie-Hellman group-exchang
wolfSSH through 1.5.0, when compiled with the --enable-fwd (WOLFSSH_FWD) TCP/IP forwarding option, fails to apply its fo
An authenticated remote attacker with a valid SSH session can trigger a one-byte out-of-bounds stack write in wolfSSH v1
A heap buffer over-read vulnerability exists in the wolfSSH_CleanPath() function in wolfSSH. An authenticated remote att
Out-of-bounds read in wolfSSHd on Windows allows authenticated users to leak adjacent stack memory via malformed termina
NVD
CVE.org
EPSS
GitHub
Exploit-DB