# CVE-2026-54886: SSH SFTP server denial of service via extended channel data infinite loop

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-835, CWE-400
- **Published:** 2026-07-02T16:06:20.502Z
- **Modified:** 2026-11-20T06:17:30.763Z

## Who should check

- Anyone running Erlang OTP \>= 3.0.1, \< \*
- Anyone running Erlang OTP \>= 17.0, \< \*
- Anyone running Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< eaf9550b8ad4738b81149d3f617102d980c6dd18

## 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.

## Affected and fixed versions

- Erlang OTP: \>= 3.0.1, \< \* (cvelist)
- Erlang OTP: \>= 17.0, \< \* (cvelist)
- Erlang OTP: \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< eaf9550b8ad4738b81149d3f617102d980c6dd18 (cvelist)

## Mitigation

- Vendor workaround: \* 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54886. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54886.md
Affected: Erlang OTP >= 3.0.1, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < eaf9550b8ad4738b81149d3f617102d980c6dd18
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54886 being exploited?

There is no confirmed exploitation: CVE-2026-54886 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54886?

Medium: CVSS 5.3 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-54886?

Erlang OTP \>= 3.0.1, \< \*; Erlang OTP \>= 17.0, \< \*; Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< eaf9550b8ad4738b81149d3f617102d980c6dd18.

### Is there a fix for CVE-2026-54886?

No fixed version is listed in the sources yet. Vendor workaround: \* 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.

### How do I check if I'm affected by CVE-2026-54886?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-7wp4-pc27-2vj9>
- vendor: <https://cna.erlef.org/cves/CVE-2026-54886.html>
- patch: <https://github.com/erlang/otp/commit/eaf9550b8ad4738b81149d3f617102d980c6dd18>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-54886>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54886>

HTML: <https://flawdb.com/CVE-2026-54886> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54886>
