Security mailing lists by PureSourceCode

CVE-2026-54886

MEDIUM 5.3CVSS 4.0

SSH SFTP server denial of service via extended channel data infinite loop

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.

Published
2 Jul 2026
Last modified
20 Nov 2026
Assigned by
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
NVD status
Modified
Weakness
CWE-400CWE-835
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) CVSS 4.0 MEDIUM 5.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVE List EEF CVSS 4.0 MEDIUM 5.3 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD erlang erlang/otp
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
>= 17.0, < 27.3.4.14 27.3.4.14
NVD erlang erlang/otp
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
>= 28.0, < 28.5.0.3 28.5.0.3
NVD erlang erlang/otp
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
>= 29.0, < 29.0.3 29.0.3
NVD erlang erlang/ssh
cpe:2.3:a:erlang:erlang\/ssh:*:*:*:*:*:*:*:*
>= 3.0.1, < 5.2.11.9 5.2.11.9
NVD erlang erlang/ssh
cpe:2.3:a:erlang:erlang\/ssh:*:*:*:*:*:*:*:*
>= 5.3, < 5.5.2.2 5.5.2.2
NVD erlang erlang/ssh
cpe:2.3:a:erlang:erlang\/ssh:*:*:*:*:*:*:*:*
>= 6.0, < 6.0.2 6.0.2
CVE List Erlang ssh
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
>= 3.0.1
CVE List Erlang otp
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
>= 17.0
CVE List https://github.com erlang/otp
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
>= 84adefa331c4159d432d22840663c38f155cd4c1, < eaf9550b8ad4738b81149d3f617102d980c6dd18 eaf9550b8ad4738b81149d3f617102d980c6dd18

References

History

  • 25 Nov 2026 20:32 UTC · CVE List: first stored (published 2 Jul 2026)
  • 25 Nov 2026 20:10 UTC · NVD: first stored (published 2 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.