mediumCVE-2026-54886

CVE-2026-54886 Erlang/OTP Vulnerability

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 until OTP 29.0.3, 28.5.0.3, and 27.3.4.14 corresponding to ssh from 3.0.1 until 6.0.2, 5.5.2.2, and 5.2.11.9.

ProductErlang/OTP
CVSS5.3
EPSS0.0033
UpdatedJuly 14, 2026

Quick answer

Erlang/OTP should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • Erlang/OTP 17.0 through 29.0.2
  • Erlang/OTP 28.x before 28.5.0.3
  • Erlang/OTP 27.x before 27.3.4.14

Fixed versions

  • Erlang/OTP 29.0.3 or later
  • Erlang/OTP 28.5.0.3 or later
  • Erlang/OTP 27.3.4.14 or later

How to fix it

CVE-2026-54886 affects Erlang/OTP. The affected range is Erlang/OTP 17.0 through 29.0.2, Erlang/OTP 28.x before 28.5.0.3, Erlang/OTP 27.x before 27.3.4.14. Update to Erlang/OTP 29.0.3 or later, Erlang/OTP 28.5.0.3 or later, Erlang/OTP 27.3.4.14 or later. Fix exposed systems first, especially where internet-facing services, admin panels, and trusted internal users can be reached. If abuse is suspected, review logs and rotate secrets that may have been exposed.

  1. Inventory every Erlang/OTP install and note the exact version.
  2. Compare each install with the affected range: Erlang/OTP 17.0 through 29.0.2, Erlang/OTP 28.x before 28.5.0.3, Erlang/OTP 27.x before 27.3.4.14.
  3. Update to Erlang/OTP 29.0.3 or later, Erlang/OTP 28.5.0.3 or later, Erlang/OTP 27.3.4.14 or later.
  4. If you cannot patch today, restrict internet-facing services, admin panels, and trusted internal users to trusted users and networks.
  5. Back up the current configuration before changing production systems.
  6. Review recent logs for crashes, strange admin actions, failed logins, or unexpected access.
  7. Rotate passwords, tokens, certificates, or keys if compromise is suspected.
  8. Document the change, owner, date, and final version.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm the installed version now matches the fixed guidance: Erlang/OTP 29.0.3 or later, Erlang/OTP 28.5.0.3 or later, Erlang/OTP 27.3.4.14 or later.
  • Confirm old affected versions are no longer deployed: Erlang/OTP 17.0 through 29.0.2, Erlang/OTP 28.x before 28.5.0.3, Erlang/OTP 27.x before 27.3.4.14.
  • Confirm internet-facing services, admin panels, and trusted internal users is limited to the smallest needed group.
  • Rerun the relevant Fixnx scan or internal security check after the change.
  • Save logs, screenshots, or package output as proof of the fix.

Related categories

Trusted references

FAQ

What is affected by CVE-2026-54886?

Erlang/OTP versions listed as affected should be reviewed: Erlang/OTP 17.0 through 29.0.2, Erlang/OTP 28.x before 28.5.0.3, Erlang/OTP 27.x before 27.3.4.14.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.