• 公告ID (KylinSec-SA-2025-2321)

摘要:

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-2321

发布日期: 2025年4月20日

关联CVE: CVE-2023-48795  

  • 详细介绍

1. 漏洞描述

   

OpenSSH 9.6 之前版本及其他产品中存在的某些 OpenSSH 扩展所实现的 SSH 传输协议,允许远程攻击者绕过完整性检查,导致部分数据包(来自扩展协商消息)被遗漏,从而使客户端和服务器可能最终建立一个安全功能被降级或禁用的连接,即所谓的 Terrapin 攻击。该问题的根源在于,这些扩展所实现的 SSH 二进制数据包协议(BPP) 在握手阶段的处理不当,并且错误地使用了序列号。例如,该攻击可有效针对 SSH 使用的 ChaCha20-Poly1305(以及采用 Encrypt-then-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 之前版本)

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2023-48795 KY3.4-5A podman Unaffected

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2025-2320 下一篇:KylinSec-SA-2025-2322