🔍 CVE-2026-54886

4.3
CVSS Score
MEDIUM
2026-07-02
2026-10-25 21:10
✅ 완료

🇰🇷 한글 설명

Erlang OTP ssh 모듈의 ssh_sftpd에서 handle_data/4 함수가 SSH_MSG_CHANNEL_EXTENDED_DATA(비정상 타입 코드)를 처리할 때 자기 자신을 동일 인자로 무한 재귀 호출하는 취약점입니다. 인증된 SFTP 사용자가 이를 전송하면 해당 채널 프로세스가 영구적으로 응답 불능 상태가 되어 서비스 거부(DoS)가 발생합니다.

💡 쉬운 설명

로그인한 사용자가 특정 형식의 잘못된 데이터를 보내면 SFTP 서버의 해당 연결 처리 프로세스가 무한 반복에 빠져 멈춥니다. 이로 인해 CPU와 메모리가 계속 소모되고 파일 전송 서비스가 중단될 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Erlang/OTP 17.0 이상 29.0.3 미만, OTP 28.5.0.3 미만, OTP 27.3.4.14 미만 (ssh 3.0.1~6.0.2 미만, 5.5.2.2 미만, 5.2.11.9 미만)

⚔️ 공격 벡터

인증된 SFTP 사용자가 SSH_MSG_CHANNEL_EXTENDED_DATA 메시지를 전송하여 ssh_sftpd 채널 프로세스를 무한 루프에 빠뜨림

🛡️ 대응 방법

OTP 29.0.3, 28.5.0.3, 27.3.4.14 이상 또는 해당 ssh 패키지 최신 버전으로 업그레이드

🔧 검증 코드

출력된 ssh 애플리케이션 버전이 5.2.11.9, 5.5.2.2, 6.0.2 중 해당 브랜치의 패치 버전 이상이면 조치 완료이며, 미만이면 취약합니다.

Shell / Script
erl -noshell -eval 'io:format("~s~n", [element(2, application:get_key(ssh, vsn))]), halt().' 2>/dev/null

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

💻 영향받는 소프트웨어

Windows iSCSI Target Service