Skip to main content

wolfSSH CVE-2025-11624

LOW
Out-of-bounds Write (CWE-787)
2025-10-21 facts@wolfssl.com
1.8
CVSS 4.0 · Vendor: wolfssl
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to wolfSSH SFTP server
  2. Exploit
    Open file to obtain handle
  3. Execution
    Send packet with oversized handle field
  4. Impact
    Trigger 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (wolfssl) PRIMARY 1.8 LOW
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
vuln.today AI 6.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (wolfssl).

CVSS VectorVendor: wolfssl

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
Low

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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche embedded/IoT SSH library, limited enterprise footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

9
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +9
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:wolfssh:wolfssh:*:*:*:*:*:*:*:*
CVE-2022-32073 CRITICAL
9.8 Jul 13

WolfSSH v1.4.7 was discovered to contain an integer overflow via the function wolfSSH_SFTP_RecvRMDIR. Rated critical sev

CVE-2025-14942 CRITICAL
9.4 Jan 06

Improper authentication handling in the wolfSSH key-exchange state machine (versions 1.4.21 and earlier) allows an attac

CVE-2025-11625 CRITICAL
9.4 Oct 21

Authentication bypass in wolfSSH 1.4.20 and earlier clients allows a malicious or man-in-the-middle SSH server to skip p

CVE-2024-2873 CRITICAL
9.1 Mar 25

A vulnerability was found in wolfSSH's server-side state machine before versions 1.4.17. Rated critical severity (CVSS 9

CVE-2026-16516 CRITICAL
9.0 Oct 07

Host key substitution in wolfSSH clients using ECDSA host keys lets an unauthenticated, network-positioned attacker have

CVE-2026-83540 HIGH
7.7 Oct 07

Windows logon token reuse in wolfSSHd versions 1.4.15 through 1.5.0 allows an authenticated low-privilege user to impers

CVE-2026-84897 MEDIUM
6.9 Oct 07

Pre-authentication CPU exhaustion affects wolfSSH servers through 1.5.0 that are built with Diffie-Hellman group-exchang

CVE-2026-81535 MEDIUM
6.3 Oct 07

wolfSSH through 1.5.0, when compiled with the --enable-fwd (WOLFSSH_FWD) TCP/IP forwarding option, fails to apply its fo

CVE-2026-83742 MEDIUM
5.3 Oct 07

An authenticated remote attacker with a valid SSH session can trigger a one-byte out-of-bounds stack write in wolfSSH v1

CVE-2025-15382 MEDIUM
5.1 Jan 06

A heap buffer over-read vulnerability exists in the wolfSSH_CleanPath() function in wolfSSH. An authenticated remote att

CVE-2026-0930 LOW
2.3 Apr 20

Out-of-bounds read in wolfSSHd on Windows allows authenticated users to leak adjacent stack memory via malformed termina

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy