CVE-2026-54886 Details
Description
Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Erlang OTP ssh (ssh_sftpd module) allows an authenticated SFTP user to render an SFTP channel permanently unresponsive. The handle_data/4 function in ssh_sftpd contains a catch-all clause that accepts channel data of any type. When channel data with a non-zero type code (SSH_MSG_CHANNEL_EXTENDED_DATA) arrives with an empty pending buffer and a payload at or below the SFTP packet size limit, the clause tail-calls itself with identical arguments, creating an infinite loop. The SFTP protocol operates exclusively on normal channel data (type 0). Extended data (non-zero type) is meaningless for SFTP and is never sent by conforming clients. However, the SSH protocol permits any channel participant to send extended data on an open channel, so an authenticated SFTP client can trigger the loop by sending SSH_MSG_CHANNEL_EXTENDED_DATA with any data_type_code and any non-empty payload at or below the size limit. The targeted ssh_sftpd process enters an infinite tail-recursive loop. It never processes another message, its message queue grows without bound, and it can only be stopped by killing the process. BEAM's reduction-based scheduler preemption continues to function, so other processes on the node are not starved, but each stuck channel process consumes its full CPU time share continuously and accumulates unbounded message queue memory. Opening many channels amplifies the CPU and memory impact. Erlang/OTP SSH configurations using the default max_channels setting (infinity) allow an authenticated user to open unlimited channels per connection, amplifying the attack without requiring multiple TCP connections or authentications. No file contents, credentials, or write access are obtainable through this issue. The impact is limited to denial of service on targeted SFTP channels, with secondary CPU degradation and memory growth. This vulnerability is associated with program file lib/ssh/src/ssh_sftpd.erl and program routine ssh_sftpd:handle_data/4. This issue affects OTP from OTP 17.0 before OTP 29.0.3, OTP 28.5.0.3 and OTP 27.3.4.14, corresponding to ssh from 3.0.1 before 6.0.2, 5.5.2.2 and 5.2.11.9.
A denial-of-service vulnerability has been identified in the SSH SFTP server component of Erlang OTP, specifically within the ssh_sftpd module. This vulnerability allows an authenticated SFTP user to cause an SFTP channel to become permanently unresponsive. The issue arises in the handle_data/4 function, which includes a catch-all clause that processes channel data of any type. When extended data (non-zero type) is received with an empty pending buffer and a payload at or below the SFTP packet size limit, the function recursively calls itself with the same arguments, creating an infinite loop. This behavior disrupts the normal operation of the SFTP channel, causing it to freeze indefinitely. The vulnerability affects Erlang OTP versions 17.0 through 29.0.3, 28.5.0.3, and 27.3.4.14, corresponding to SSH versions 3.0.1 through 6.0.2, 5.5.2.2, and 5.2.11.9.
Erlang/OTP users can upgrade to versions 29.0.3, 28.5.0.3, or 27.3.4.14 to address this vulnerability. Additionally, the max_channels daemon option can be set to a finite value to limit the number of channels an attacker can open per connection. External process monitoring can also be employed to detect and terminate ssh_sftpd processes that are using excessive CPU resources or have growing message queues.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-54886.html | EEF | MitigationVendor Advisory |
| https://github.com/erlang/otp/commit/eaf9550b8ad4738b81149d3f617102d980c6dd18 | EEF | Patch |
| https://github.com/erlang/otp/security/advisories/GHSA-7wp4-pc27-2vj9 | EEF | MitigationVendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-54886 | EEF | MitigationThird Party Advisory |
| https://www.erlang.org/doc/system/versions.html#order-of-versions | EEF | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | EEF |
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | EEF |
Affected Products
| Product | Versions |
|---|---|
| erlang erlang/otp | >= 17.0, < 27.3.4.14 >= 28.0, < 28.5.0.3 >= 29.0, < 29.0.3 |
CPE
Remediation
| |
| erlang erlang/ssh | >= 3.0.1, < 5.2.11.9 >= 5.3, < 5.5.2.2 >= 6.0, < 6.0.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Modified | EEF |
| Jul 7, 2026 | Initial Analysis | [email protected] |
| Jul 2, 2026 | CVE Modified | CISA-ADP |
| Jul 2, 2026 | New CVE Received | EEF |