CVE-2026-54886
Medium 5.3No known exploitationFix availableSSH SFTP server denial of service via extended channel data infinite loop
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 27% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssh from 3.0.1 before 5.2.11.9, 5.5.2.2, and 6.0.2. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.
Weakness: CWE-835, CWE-400
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- * Set the max_channels daemon option to a finite value (e.g., {max_channels, 10}) to limit the number of channels an attacker can open per connection. * Set the max_sessions daemon option to limit total concurrent SSH connections to the daemon. * Use external process monitoring to detect and kill ssh_sftpd processes with abnormally high reduction counts and growing message queues. * Ensure that the SFTP server port is not reachable from untrusted machines. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Erlang | OTP | from 84adefa331c4159d432d22840663c38f155cd4c1 before eaf9550b8ad4738b81149d3f617102d980c6dd18 | eaf9550b8ad4738b81149d3f617102d980c6dd18 | CVE Program |
| Erlang | OTP | 17.0 | Not documented | CVE Program |
| Erlang | OTP | 3.0.1 | Not documented | CVE Program |
| erlang | erlang/otp | from 17.0 before 27.3.4.14 | 27.3.4.14 | NIST NVD |
| erlang | erlang/otp | from 28.0 before 28.5.0.3 | 28.5.0.3 | NIST NVD |
| erlang | erlang/otp | from 29.0 before 29.0.3 | 29.0.3 | NIST NVD |
| erlang | erlang/ssh | from 3.0.1 before 5.2.11.9 | 5.2.11.9 | NIST NVD |
| erlang | erlang/ssh | from 5.3 before 5.5.2.2 | 5.5.2.2 | NIST NVD |
| erlang | erlang/ssh | from 6.0 before 6.0.2 | 6.0.2 | NIST NVD |
| Erlang | OTP (unaffected) | eaf9550b8ad4738b81149d3f617102d980c6dd18 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- EEF CNA record for CVE-2026-54886 (opens in a new tab)mitigation, related, vendor advisory
- Fix commit eaf9550 in erlang/otp (opens in a new tab)patch
- SSH SFTP server denial of service via extended data infinite loop (opens in a new tab)mitigation, related, vendor advisory, vendor-advisory
- OSV record EEF-CVE-2026-54886 (opens in a new tab)mitigation, related, third party advisory
- Erlang/OTP version ordering (opens in a new tab)release notes, x_version-scheme