Skip to content

CVE-2023-48795 Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin

MediumCVSS 5.9 EPSS 93.5% Public exploit
Published
Updated
Exploit status
Public exploit available
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHPUbuntuDebianRed Hat

Description

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.

Upgrade path

325 packages: 245 fixed, 65 with no fix yet.

PackageAffectedFixed inStatus
debian/golang-go.crypto(Debian 12) = 1:0.4.0-1; = 1:0.10.0-1; = 1:0.12.0-1; = 1:0.13.0-1 +37 more No fix listed No fix yet
debian/paramiko(Debian 12) = 2.12.0-2; = 2.12.0-3; = 3.4.0-1; = 3.4.0-2 +13 more No fix listed No fix yet
debian/tinyssh(Debian 12) = 20230101-1; = 20230101-2; = 20230101-2~exp1; = 20230101-3 +17 more No fix listed No fix yet
debian/trilead-ssh2(Debian 12) = 6401+svn158-1.1; = 6401+svn158-2; All versions No fix listed No fix yet
debian/trilead-ssh2(Debian 13) = 6401+svn158-2; All versions No fix listed No fix yet
debian/trilead-ssh2(Debian 14) = 6401+svn158-2; All versions No fix listed No fix yet
gentoo security All versions No fix listed No fix yet
lancom-systems lanconfig All versions No fix listed No fix yet
lancom-systems lcos fx All versions No fix listed No fix yet
lancom-systems lcos lx All versions No fix listed No fix yet
redhat cert-manager operator for red hat openshift All versions No fix listed No fix yet
redhat discovery All versions No fix listed No fix yet
redhat keycloak All versions No fix listed No fix yet
redhat openshift api for data protection All versions No fix listed No fix yet
redhat openshift dev spaces All versions No fix listed No fix yet
redhat openshift developer tools and services All versions No fix listed No fix yet
redhat openshift gitops All versions No fix listed No fix yet
redhat openshift pipelines All versions No fix listed No fix yet
redhat openshift serverless All versions No fix listed No fix yet
Siemens RUGGEDCOM APE1808 All versions No fix listed No fix yet
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed No fix yet
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.5 No fix listed No fix yet
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed No fix yet
ubuntu/dropbear(Ubuntu 16.04) = 2014.65-1ubuntu2; = 2015.68-1; = 2015.70-1; = 2015.71-1 +2 more No fix listed No fix yet
ubuntu/dropbear(Ubuntu 24.04) = 2022.83-2; = 2022.83-3; = 2022.83-4; All versions No fix listed No fix yet
ubuntu/dropbear(Ubuntu 25.10) = 2024.86-2; = 2025.88-2; All versions No fix listed No fix yet
ubuntu/dropbear(Ubuntu 26.04) = 2025.88-2; = 2025.89-1; All versions No fix listed No fix yet
ubuntu/dropbear(Ubuntu 26.10) = 2025.89-1; = 2026.91-1; = 2026.92-1; = 2026.94-1 +2 more No fix listed No fix yet
ubuntu/golang-go.crypto(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-go.crypto(Ubuntu 24.04) All versions No fix listed No fix yet

… and 295 more packages.

Affected products

ProductAffected versionsFixed in
crates.io russh(crates.io) < 0.40.2 0.40.2
golang.org/x/crypto(Go) >= 0.1.0, < 0.17.0 0.17.0
pypi paramiko(PyPI) >= 2.5.0, < 3.4.0 3.4.0
pypi paramiko(PyPI) = 2.10.0 No fix listed
pypi paramiko(PyPI) = 2.10.1 No fix listed
pypi paramiko(PyPI) = 2.10.2 No fix listed
pypi paramiko(PyPI) = 2.10.3 No fix listed
pypi paramiko(PyPI) = 2.10.4 No fix listed
pypi paramiko(PyPI) = 2.10.5 No fix listed
pypi paramiko(PyPI) = 2.10.6 No fix listed
pypi paramiko(PyPI) = 2.11.0 No fix listed
pypi paramiko(PyPI) = 2.11.1 No fix listed
pypi paramiko(PyPI) = 2.12.0 No fix listed
pypi paramiko(PyPI) = 2.5.0 No fix listed
pypi paramiko(PyPI) = 2.5.1 No fix listed
pypi paramiko(PyPI) = 2.6.0 No fix listed
pypi paramiko(PyPI) = 2.7.0 No fix listed
pypi paramiko(PyPI) = 2.7.1 No fix listed
pypi paramiko(PyPI) = 2.7.2 No fix listed
pypi paramiko(PyPI) = 2.8.0 No fix listed
pypi paramiko(PyPI) = 2.8.1 No fix listed
pypi paramiko(PyPI) = 2.9.0 No fix listed
pypi paramiko(PyPI) = 2.9.1 No fix listed
pypi paramiko(PyPI) = 2.9.2 No fix listed
pypi paramiko(PyPI) = 2.9.3 No fix listed
Show 175 more
ProductAffected versionsFixed in
pypi paramiko(PyPI) = 2.9.4 No fix listed
pypi paramiko(PyPI) = 2.9.5 No fix listed
pypi paramiko(PyPI) = 3.0.0 No fix listed
pypi paramiko(PyPI) = 3.1.0 No fix listed
pypi paramiko(PyPI) = 3.2.0 No fix listed
pypi paramiko(PyPI) = 3.3.0 No fix listed
pypi paramiko(PyPI) = 3.3.1 No fix listed
pypi paramiko(PyPI) = 3.3.2 No fix listed
golang.org/x/crypto(Go) < 0.0.0-20231218163308-9d2ee975ef9f 0.0.0-20231218163308-9d2ee975ef9f
golang.org/x/crypto(Go) < 0.17.0 0.17.0
Microsoft cbl mariner < 1.11.2-7 1.11.2-7
Microsoft cbl mariner < 25.2-2 25.2-2
Microsoft cbl mariner < 1.28.4-4 1.28.4-4
Microsoft cbl mariner < 0.10.6-1 0.10.6-1
Microsoft azure linux < 1.12.12-1 1.12.12-1
Microsoft azure linux < 0.14.0-1 0.14.0-1
Microsoft azure linux < 1.30.1-1 1.30.1-1
Microsoft azure linux < 1.2.0-9 1.2.0-9
debian/dropbear(Debian:12) < 2022.83-1+deb12u1 2022.83-1+deb12u1
debian/dropbear(Debian:12) = 2022.83-1 No fix listed
debian/dropbear(Debian:12) = 2022.83-1+deb12u1~bpo11+1 No fix listed
debian/dropbear(Debian:13) < 2022.83-4 2022.83-4
debian/dropbear(Debian:14) < 2022.83-4 2022.83-4
debian/erlang(Debian:12) < 1:25.2.3+dfsg-1+deb12u1 1:25.2.3+dfsg-1+deb12u1
debian/erlang(Debian:12) = 1:25.2.3+dfsg-1 No fix listed
debian/erlang(Debian:13) < 1:25.3.2.8+dfsg-1 1:25.3.2.8+dfsg-1
debian/erlang(Debian:14) < 1:25.3.2.8+dfsg-1 1:25.3.2.8+dfsg-1
debian/filezilla(Debian:12) < 3.63.0-1+deb12u3 3.63.0-1+deb12u3
debian/filezilla(Debian:12) = 3.63.0-1 No fix listed
debian/filezilla(Debian:12) = 3.63.0-1+deb12u1 No fix listed
debian/filezilla(Debian:12) = 3.63.0-1+deb12u2 No fix listed
debian/filezilla(Debian:13) < 3.66.4-1 3.66.4-1
debian/filezilla(Debian:14) < 3.66.4-1 3.66.4-1
debian/golang-go.crypto(Debian:12) All versions No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.10.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.12.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.13.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.14.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.16.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.17.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.18.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.19.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.21.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.22.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.23.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.24.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.24.0-2 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.25.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.25.0-1~bpo12+1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.33.0-1~exp1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.36.0-1~exp1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.4.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.41.0-1~exp1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.42.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.42.0-1~exp1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.42.0-2 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.42.0-3 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.42.0-4 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.43.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.43.0-2 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.45.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.46.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.47.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.50.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.52.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.52.0-1~bpo13+1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.53.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.54.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.55.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.56.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.57.0-1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.57.0-2 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.57.0-2~bpo13+1 No fix listed
debian/golang-go.crypto(Debian:12) = 1:0.58.0-1 No fix listed
debian/golang-go.crypto(Debian:13) < 1:0.17.0-1 1:0.17.0-1
debian/golang-go.crypto(Debian:14) < 1:0.17.0-1 1:0.17.0-1
debian/libssh(Debian:12) < 0.10.6-0+deb12u1 0.10.6-0+deb12u1
debian/libssh(Debian:12) = 0.10.5-2 No fix listed
debian/libssh(Debian:12) = 0.10.5-3 No fix listed
debian/libssh(Debian:12) = 0.10.5-3+hurd.1 No fix listed
debian/libssh(Debian:13) < 0.10.6-1 0.10.6-1
debian/libssh(Debian:14) < 0.10.6-1 0.10.6-1
debian/libssh2(Debian:13) < 1.11.0-4 1.11.0-4
debian/libssh2(Debian:14) < 1.11.0-4 1.11.0-4
debian/openssh(Debian:12) < 1:9.2p1-2+deb12u2 1:9.2p1-2+deb12u2
debian/openssh(Debian:12) = 1:9.2p1-2 No fix listed
debian/openssh(Debian:12) = 1:9.2p1-2+deb12u1 No fix listed
debian/openssh(Debian:13) < 1:9.6p1-1 1:9.6p1-1
debian/openssh(Debian:14) < 1:9.6p1-1 1:9.6p1-1
debian/paramiko(Debian:12) All versions No fix listed
debian/paramiko(Debian:12) = 2.12.0-2 No fix listed
debian/paramiko(Debian:12) = 2.12.0-3 No fix listed
debian/paramiko(Debian:12) = 3.4.0-1 No fix listed
debian/paramiko(Debian:12) = 3.4.0-2 No fix listed
debian/paramiko(Debian:12) = 3.4.1-1 No fix listed
debian/paramiko(Debian:12) = 3.4.1-2 No fix listed
debian/paramiko(Debian:12) = 3.5.0-1 No fix listed
debian/paramiko(Debian:12) = 3.5.0-1~exp1 No fix listed
debian/paramiko(Debian:12) = 3.5.1-1 No fix listed
debian/paramiko(Debian:12) = 3.5.1-2 No fix listed
debian/paramiko(Debian:12) = 3.5.1-3 No fix listed
debian/paramiko(Debian:12) = 4.0.0-1 No fix listed
debian/paramiko(Debian:12) = 4.0.0-2 No fix listed
debian/paramiko(Debian:12) = 4.0.0-3 No fix listed
debian/paramiko(Debian:12) = 4.0.0-4 No fix listed
debian/paramiko(Debian:12) = 5.0.0-1 No fix listed
debian/paramiko(Debian:13) < 3.4.0-1 3.4.0-1
debian/paramiko(Debian:14) < 3.4.0-1 3.4.0-1
debian/php-phpseclib(Debian:12) < 2.0.42-1+deb12u1 2.0.42-1+deb12u1
debian/php-phpseclib(Debian:12) = 2.0.42-1 No fix listed
debian/php-phpseclib(Debian:13) < 2.0.46-1 2.0.46-1
debian/php-phpseclib(Debian:14) < 2.0.46-1 2.0.46-1
debian/php-phpseclib3(Debian:12) < 3.0.19-1+deb12u2 3.0.19-1+deb12u2
debian/php-phpseclib3(Debian:12) = 3.0.19-1 No fix listed
debian/php-phpseclib3(Debian:12) = 3.0.19-1+deb12u1 No fix listed
debian/php-phpseclib3(Debian:13) < 3.0.35-1 3.0.35-1
debian/php-phpseclib3(Debian:14) < 3.0.35-1 3.0.35-1
debian/phpseclib(Debian:12) < 1.0.20-1+deb12u1 1.0.20-1+deb12u1
debian/phpseclib(Debian:12) = 1.0.20-1 No fix listed
debian/phpseclib(Debian:13) < 1.0.22-1 1.0.22-1
debian/proftpd-dfsg(Debian:12) < 1.3.8+dfsg-4+deb12u3 1.3.8+dfsg-4+deb12u3
debian/proftpd-dfsg(Debian:12) = 1.3.8+dfsg-4 No fix listed
debian/proftpd-dfsg(Debian:12) = 1.3.8+dfsg-4+deb12u1 No fix listed
debian/proftpd-dfsg(Debian:12) = 1.3.8+dfsg-4+deb12u2 No fix listed
debian/proftpd-dfsg(Debian:13) < 1.3.8.b+dfsg-1 1.3.8.b+dfsg-1
debian/proftpd-dfsg(Debian:14) < 1.3.8.b+dfsg-1 1.3.8.b+dfsg-1
debian/proftpd-mod-proxy(Debian:12) < 0.9.2-1+deb12u1 0.9.2-1+deb12u1
debian/proftpd-mod-proxy(Debian:12) = 0.9.2-1 No fix listed
debian/proftpd-mod-proxy(Debian:13) < 0.9.3-1 0.9.3-1
debian/proftpd-mod-proxy(Debian:14) < 0.9.3-1 0.9.3-1
debian/putty(Debian:12) < 0.78-2+deb12u1 0.78-2+deb12u1
debian/putty(Debian:12) = 0.78-2 No fix listed
debian/putty(Debian:13) < 0.80-1 0.80-1
debian/putty(Debian:14) < 0.80-1 0.80-1
debian/python-asyncssh(Debian:12) < 2.10.1-2+deb12u1 2.10.1-2+deb12u1
debian/python-asyncssh(Debian:12) = 2.10.1-2 No fix listed
debian/python-asyncssh(Debian:13) < 2.15.0-1 2.15.0-1
debian/python-asyncssh(Debian:14) < 2.15.0-1 2.15.0-1
debian/tinyssh(Debian:12) All versions No fix listed
debian/tinyssh(Debian:12) = 20230101-1 No fix listed
debian/tinyssh(Debian:12) = 20230101-2 No fix listed
debian/tinyssh(Debian:12) = 20230101-2~exp1 No fix listed
debian/tinyssh(Debian:12) = 20230101-3 No fix listed
debian/tinyssh(Debian:12) = 20230101-4 No fix listed
debian/tinyssh(Debian:12) = 20240101-1 No fix listed
debian/tinyssh(Debian:12) = 20240101-2 No fix listed
debian/tinyssh(Debian:12) = 20240101-3 No fix listed
debian/tinyssh(Debian:12) = 20241111-1 No fix listed
debian/tinyssh(Debian:12) = 20241201-1 No fix listed
debian/tinyssh(Debian:12) = 20250126-1 No fix listed
debian/tinyssh(Debian:12) = 20250201-1 No fix listed
debian/tinyssh(Debian:12) = 20250501-1 No fix listed
debian/tinyssh(Debian:12) = 20250501-2 No fix listed
debian/tinyssh(Debian:12) = 20260301-1 No fix listed
debian/tinyssh(Debian:12) = 20260401-1 No fix listed
debian/tinyssh(Debian:12) = 20260601-1 No fix listed
debian/tinyssh(Debian:12) = 20260906-1 No fix listed
debian/tinyssh(Debian:12) = 20261001-1 No fix listed
debian/tinyssh(Debian:12) = 20261001-2 No fix listed
debian/tinyssh(Debian:13) < 20230101-4 20230101-4
debian/tinyssh(Debian:14) < 20230101-4 20230101-4
debian/trilead-ssh2(Debian:12) All versions No fix listed
debian/trilead-ssh2(Debian:12) = 6401+svn158-1.1 No fix listed
debian/trilead-ssh2(Debian:12) = 6401+svn158-2 No fix listed
debian/trilead-ssh2(Debian:13) All versions No fix listed
debian/trilead-ssh2(Debian:13) = 6401+svn158-2 No fix listed
debian/trilead-ssh2(Debian:14) All versions No fix listed
debian/trilead-ssh2(Debian:14) = 6401+svn158-2 No fix listed
Siemens RUGGEDCOM APE1808 All versions No fix listed
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem < V1.1 V1.1
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
ubuntu/dropbear(Ubuntu:22.04) < 2020.81-5ubuntu0.1 2020.81-5ubuntu0.1
ubuntu/filezilla(Ubuntu:22.04) < 3.58.0-1ubuntu0.1 3.58.0-1ubuntu0.1

References