摘要:
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack. This occurs because the SSH Binary Packet Protocol (BPP), implemented by these extensions, mishandles the handshake phase and mishandles use of sequence numbers. For example, there is an effective attack against SSH s use of ChaCha20-Poly1305 (and CBC with Encrypt-then-MAC). The bypass occurs in chacha20-poly1305@openssh.com and (if CBC is used) the -etm@openssh.com MAC algorithms. This also affects Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT, Dropbear through 2022.83, Ssh before 5.1.1 in Erlang/OTP, PuTTY before 0.80, AsyncSSH before 2.14.2, golang.org/x/crypto before 0.17.0, libssh before 0.10.6, libssh2 through 1.11.0, Thorn Tech SFTP Gateway before 3.4.6, Tera Term before 5.1, Paramiko before 3.4.0, jsch before 0.2.15, SFTPGo before 2.5.6, Netgate pfSense Plus through 23.09.1, Netgate pfSense CE through 2.7.2, HPN-SSH through 18.2.0, ProFTPD before 1.3.8b (and before 1.3.9rc2), ORYX CycloneSSH before 2.3.4, NetSarang XShell 7 before Build 0144, CrushFTP before 10.6.0, ConnectBot SSH library before 2.2.22, Apache MINA sshd through 2.11.0, sshj through 0.37.0, TinySSH through 20230101, trilead-ssh2 6401, LANCOM LCOS and LANconfig, FileZilla before 3.66.4, Nova before 11.8, PKIX-SSH before 14.4, SecureCRT before 9.4.3, Transmit5 before 5.10.4, Win32-OpenSSH before 9.5.0.0p1-Beta, WinSCP before 6.2.2, Bitvise SSH Server before 9.32, Bitvise SSH Client before 9.33, KiTTY through 0.76.1.13, the net-ssh gem 7.2.0 for Ruby, the mscdex ssh2 module before 1.15.0 for Node.js, the thrussh library before 0.35.1 for Rust, and the Russh crate before 0.40.2 for Rust.
安全等级: Low
公告ID: KylinSec-SA-2025-2322
发布日期: 2025年4月20日
关联CVE: CVE-2023-48795
某些OpenSSH扩展实现的SSH传输协议(存在于OpenSSH 9.6之前版本及其他产品中)允许远程攻击者绕过完整性检查,导致部分数据包(来自扩展协商消息)被遗漏,进而使得客户端与服务器可能建立安全特性被降级或禁用的连接,此即Terrapin攻击。该漏洞源于这些扩展所实现的SSH二进制数据包协议(BPP)在握手阶段处理不当且序列号使用有误。例如,该攻击可有效突破SSH的ChaCha20-Poly1305加密方案(以及采用加密后MAC的CBC模式)。绕过行为发生在chacha20-poly1305@openssh.com及(若使用CBC模式时)-etm@openssh.com MAC算法中。该漏洞同时影响以下产品:
Maverick Synergy Java SSH API 3.1.0-SNAPSHOT之前版本
Dropbear 2022.83及之前版本
Erlang/OTP的Ssh 5.1.1之前版本
PuTTY 0.80之前版本
AsyncSSH 2.14.2之前版本
golang.org/x/crypto 0.17.0之前版本
libssh 0.10.6之前版本
libssh2 1.11.0及之前版本
Thorn Tech SFTP Gateway 3.4.6之前版本
Tera Term 5.1之前版本
Paramiko 3.4.0之前版本
jsch 0.2.15之前版本
SFTPGo 2.5.6之前版本
Netgate pfSense Plus 23.09.1及之前版本
Netgate pfSense CE 2.7.2及之前版本
HPN-SSH 18.2.0及之前版本
ProFTPD 1.3.8b之前版本(及1.3.9rc2之前版本)
ORYX CycloneSSH 2.3.4之前版本
NetSarang XShell 7 Build 0144之前版本
CrushFTP 10.6.0之前版本
ConnectBot SSH library 2.2.22之前版本
Apache MINA sshd 2.11.0及之前版本
sshj 0.37.0及之前版本
TinySSH 20230101及之前版本
trilead-ssh2 6401版本
LANCOM LCOS与LANconfig
FileZilla 3.66.4之前版本
Nova 11.8之前版本
PKIX-SSH 14.4之前版本
SecureCRT 9.4.3之前版本
Transmit5 5.10.4之前版本
Win32-OpenSSH 9.5.0.0p1-Beta之前版本
WinSCP 6.2.2之前版本
Bitvise SSH Server 9.32之前版本
Bitvise SSH Client 9.33之前版本
KiTTY 0.76.1.13及之前版本
Ruby的net-ssh gem 7.2.0版本
Node.js的mscdex ssh2模块1.15.0之前版本
Rust的thrussh库0.35.1之前版本
Rust的Russh crate 0.40.2之前版本
cve名称 | 产品 | 组件 | 是否受影响 |
---|---|---|---|
CVE-2023-48795 | KY3.4-5A | python-asyncssh | Unaffected |
CVE-2023-48795 | V6 | python-asyncssh | Unaffected |