Name | CVE-2023-48795 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3694-1, DLA-3718-1, DLA-3719-1, DLA-3730-1, DLA-3794-1, DLA-3899-1, DLA-3975-1, DSA-5586-1, DSA-5588-1, DSA-5591-1, DSA-5599-1, DSA-5600-1, DSA-5601-1, DSA-5750-1 |
Debian Bugs | 1059001, 1059002, 1059003, 1059004, 1059005, 1059006, 1059007, 1059058, 1059144, 1059290, 1059294 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
dropbear (PTS) | bullseye | 2020.81-3+deb11u2 | fixed |
bookworm | 2022.83-1+deb12u2 | fixed | |
sid, trixie | 2024.86-1 | fixed | |
erlang (PTS) | bullseye | 1:23.2.6+dfsg-1+deb11u1 | vulnerable |
bookworm | 1:25.2.3+dfsg-1 | vulnerable | |
trixie | 1:25.3.2.12+dfsg-3 | fixed | |
sid | 1:27.1.2+dfsg-1 | fixed | |
filezilla (PTS) | bullseye | 3.52.2-3+deb11u1 | fixed |
bookworm | 3.63.0-1+deb12u3 | fixed | |
sid, trixie | 3.68.0-1 | fixed | |
golang-go.crypto (PTS) | bullseye | 1:0.0~git20201221.eec23a3-1 | vulnerable |
bookworm | 1:0.4.0-1 | vulnerable | |
sid, trixie | 1:0.25.0-1 | fixed | |
jsch (PTS) | bookworm, bullseye | 0.1.55-1 | fixed |
sid, trixie | 0.2.19-1 | fixed | |
libssh (PTS) | bullseye (security), bullseye | 0.9.8-0+deb11u1 | fixed |
bookworm, bookworm (security) | 0.10.6-0+deb12u1 | fixed | |
sid, trixie | 0.11.1-1 | fixed | |
libssh2 (PTS) | bullseye | 1.9.0-2+deb11u1 | fixed |
bookworm | 1.10.0-3 | fixed | |
sid, trixie | 1.11.1-1 | fixed | |
openssh (PTS) | bullseye (security), bullseye | 1:8.4p1-5+deb11u3 | fixed |
bookworm, bookworm (security) | 1:9.2p1-2+deb12u3 | fixed | |
sid, trixie | 1:9.9p1-3 | fixed | |
paramiko (PTS) | bullseye | 2.7.2-1 | vulnerable |
bookworm | 2.12.0-2 | vulnerable | |
sid, trixie | 3.4.1-2 | fixed | |
php-phpseclib (PTS) | bullseye | 2.0.30-2+deb11u2 | fixed |
bullseye (security) | 2.0.30-2+deb11u1 | fixed | |
bookworm | 2.0.42-1+deb12u2 | fixed | |
bookworm (security) | 2.0.42-1+deb12u1 | fixed | |
sid, trixie | 2.0.47-3 | fixed | |
php-phpseclib3 (PTS) | bookworm | 3.0.19-1+deb12u3 | fixed |
bookworm (security) | 3.0.19-1+deb12u2 | fixed | |
sid, trixie | 3.0.42-1 | fixed | |
phpseclib (PTS) | bullseye | 1.0.19-3+deb11u2 | fixed |
bullseye (security) | 1.0.19-3+deb11u1 | fixed | |
bookworm | 1.0.20-1+deb12u2 | fixed | |
bookworm (security) | 1.0.20-1+deb12u1 | fixed | |
sid, trixie | 1.0.23-3 | fixed | |
proftpd-dfsg (PTS) | bullseye | 1.3.7a+dfsg-12+deb11u2 | vulnerable |
bullseye (security) | 1.3.7a+dfsg-12+deb11u3 | fixed | |
bookworm | 1.3.8+dfsg-4+deb12u3 | fixed | |
bookworm (security) | 1.3.8+dfsg-4+deb12u4 | fixed | |
sid, trixie | 1.3.8.c+dfsg-1 | fixed | |
proftpd-mod-proxy (PTS) | bullseye | 0.7-1 | vulnerable |
bookworm | 0.9.2-1+deb12u1 | fixed | |
sid, trixie | 0.9.4-1 | fixed | |
putty (PTS) | bullseye | 0.74-1+deb11u2 | fixed |
bullseye (security) | 0.74-1+deb11u1 | fixed | |
bookworm | 0.78-2+deb12u2 | fixed | |
bookworm (security) | 0.78-2+deb12u1 | fixed | |
sid, trixie | 0.82-2 | fixed | |
python-asyncssh (PTS) | bullseye | 2.5.0-0.1 | vulnerable |
bullseye (security) | 2.5.0-0.1+deb11u1 | fixed | |
bookworm, bookworm (security) | 2.10.1-2+deb12u1 | fixed | |
sid, trixie | 2.19.0-1 | fixed | |
tinyssh (PTS) | bullseye | 20190101-1+deb11u1 | vulnerable |
bookworm | 20230101-1 | vulnerable | |
sid, trixie | 20241201-1 | fixed | |
trilead-ssh2 (PTS) | sid, trixie, bookworm, bullseye | 6401+svn158-1.1 | vulnerable |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
dropbear | source | buster | (not affected) | |||
dropbear | source | bullseye | 2020.81-3+deb11u1 | |||
dropbear | source | bookworm | 2022.83-1+deb12u1 | |||
dropbear | source | (unstable) | 2022.83-4 | 1059001 | ||
erlang | source | (unstable) | 1:25.3.2.8+dfsg-1 | 1059002 | ||
filezilla | source | buster | (not affected) | |||
filezilla | source | bullseye | 3.52.2-3+deb11u1 | |||
filezilla | source | bookworm | 3.63.0-1+deb12u3 | |||
filezilla | source | (unstable) | 3.66.4-1 | |||
golang-go.crypto | source | (unstable) | 1:0.17.0-1 | 1059003 | ||
jsch | source | (unstable) | (not affected) | |||
libssh | source | bullseye | 0.9.8-0+deb11u1 | DSA-5591-1 | ||
libssh | source | bookworm | 0.10.6-0+deb12u1 | DSA-5591-1 | ||
libssh | source | (unstable) | 0.10.6-1 | 1059004 | ||
libssh2 | source | buster | (not affected) | |||
libssh2 | source | bullseye | (not affected) | |||
libssh2 | source | bookworm | (not affected) | |||
libssh2 | source | (unstable) | 1.11.0-4 | 1059005 | ||
openssh | source | buster | 1:7.9p1-10+deb10u4 | DLA-3694-1 | ||
openssh | source | bullseye | 1:8.4p1-5+deb11u3 | DSA-5586-1 | ||
openssh | source | bookworm | 1:9.2p1-2+deb12u2 | DSA-5586-1 | ||
openssh | source | (unstable) | 1:9.6p1-1 | |||
paramiko | source | buster | (not affected) | |||
paramiko | source | (unstable) | 3.4.0-1 | 1059006 | ||
php-phpseclib | source | buster | 2.0.30-2~deb10u2 | DLA-3718-1 | ||
php-phpseclib | source | bullseye | 2.0.30-2+deb11u1 | DSA-5600-1 | ||
php-phpseclib | source | bookworm | 2.0.42-1+deb12u1 | DSA-5600-1 | ||
php-phpseclib | source | (unstable) | 2.0.46-1 | |||
php-phpseclib3 | source | bookworm | 3.0.19-1+deb12u2 | DSA-5601-1 | ||
php-phpseclib3 | source | (unstable) | 3.0.35-1 | |||
phpseclib | source | buster | 1.0.19-3~deb10u2 | DLA-3719-1 | ||
phpseclib | source | bullseye | 1.0.19-3+deb11u1 | DSA-5599-1 | ||
phpseclib | source | bookworm | 1.0.20-1+deb12u1 | DSA-5599-1 | ||
phpseclib | source | (unstable) | 1.0.22-1 | |||
proftpd-dfsg | source | bullseye | 1.3.7a+dfsg-12+deb11u3 | DLA-3975-1 | ||
proftpd-dfsg | source | bookworm | 1.3.8+dfsg-4+deb12u3 | |||
proftpd-dfsg | source | (unstable) | 1.3.8.b+dfsg-1 | 1059144 | ||
proftpd-mod-proxy | source | bookworm | 0.9.2-1+deb12u1 | |||
proftpd-mod-proxy | source | (unstable) | 0.9.3-1 | 1059290 | ||
putty | source | buster | 0.74-1+deb11u1~deb10u1 | DLA-3794-1 | ||
putty | source | bullseye | 0.74-1+deb11u1 | DSA-5588-1 | ||
putty | source | bookworm | 0.78-2+deb12u1 | DSA-5588-1 | ||
putty | source | (unstable) | 0.80-1 | |||
python-asyncssh | source | buster | 1.12.2-1+deb10u1 | DLA-3730-1 | ||
python-asyncssh | source | bullseye | 2.5.0-0.1+deb11u1 | DLA-3899-1 | ||
python-asyncssh | source | bookworm | 2.10.1-2+deb12u1 | DSA-5750-1 | ||
python-asyncssh | source | (unstable) | 2.15.0-1 | 1059007 | ||
tinyssh | source | (unstable) | 20230101-4 | unimportant | 1059058 | |
trilead-ssh2 | source | (unstable) | (unfixed) | 1059294 |
[buster] - dropbear <not-affected> (ChaCha20-Poly1305 support introduced in 2020.79; *-EtM not supported as of 2022.83)
[bookworm] - erlang <no-dsa> (Minor issue)
[bullseye] - erlang <no-dsa> (Minor issue)
[buster] - erlang <no-dsa> (Minor issue)
[buster] - filezilla <not-affected> (OpenSSH extension in question not implemented)
[bookworm] - golang-go.crypto <no-dsa> (Minor issue)
[bullseye] - golang-go.crypto <no-dsa> (Minor issue)
[buster] - golang-go.crypto <postponed> (Limited support, minor issue, follow bullseye DSAs/point-releases)
- jsch <not-affected> (ChaCha20-Poly1305 support introduced in 0.1.61; *-EtM support introduced in 0.1.58)
[bookworm] - libssh2 <not-affected> (ChaCha20-Poly1305 and CBC-EtM support not present)
[bullseye] - libssh2 <not-affected> (ChaCha20-Poly1305 and CBC-EtM support not present)
[buster] - libssh2 <not-affected> (ChaCha20-Poly1305 and CBC-EtM support not present)
[bookworm] - paramiko <ignored> (Minor issue)
[bullseye] - paramiko <no-dsa> (Minor issue)
[buster] - paramiko <not-affected> (ChaCha20-Poly1305 and CBC-EtM support not present)
[buster] - proftpd-dfsg <no-dsa> (Minor issue)
[bullseye] - proftpd-mod-proxy <ignored> (Minor issue)
[bookworm] - trilead-ssh2 <ignored> (Minor issue)
[bullseye] - trilead-ssh2 <no-dsa> (Minor issue)
[buster] - trilead-ssh2 <no-dsa> (Minor issue)
https://terrapin-attack.com/
https://www.openwall.com/lists/oss-security/2023/12/18/3
dropbear: https://github.com/mkj/dropbear/commit/6e43be5c7b99dbee49dc72b6f989f29fdd7e9356
Erlang/OTP: https://github.com/erlang/otp/commit/ee67d46285394db95133709cef74b0c462d665aa (OTP-24.3.4.15, OTP-25.3.2.8, OTP-26.2.1)
filezilla: https://svn.filezilla-project.org/filezilla?view=revision&revision=11047
filezilla: https://svn.filezilla-project.org/filezilla?view=revision&revision=11048
filezilla: https://svn.filezilla-project.org/filezilla?view=revision&revision=11049
golang.org/x/crypto/ssh: https://groups.google.com/g/golang-announce/c/qA3XtxvMUyg
golang.org/x/crypto/ssh: https://github.com/golang/go/issues/64784
golang.org/x/crypto/ssh: https://github.com/golang/crypto/commit/9d2ee975ef9fe627bf0a6f01c1f69e8ef1d4f05d (v0.17.0)
jsch: https://github.com/mwiede/jsch/issues/457
jsch: https://github.com/norrisjeremy/jsch/commit/6214da974286a8b94a95f4cf6cec96e972ffd370 (jsch-0.2.15)
libssh: https://www.libssh.org/security/advisories/CVE-2023-48795.txt
libssh: https://gitlab.com/libssh/libssh-mirror/-/commit/4cef5e965a46e9271aed62631b152e4bd23c1e3c (libssh-0.10.6)
libssh: https://gitlab.com/libssh/libssh-mirror/-/commit/0870c8db28be9eb457ee3d4f9a168959d9507efd (libssh-0.10.6)
libssh: https://gitlab.com/libssh/libssh-mirror/-/commit/5846e57538c750c5ce67df887d09fa99861c79c6 (libssh-0.10.6)
libssh: https://gitlab.com/libssh/libssh-mirror/-/commit/89df759200d31fc79fbbe213d8eda0d329eebf6d (libssh-0.10.6)
libssh2: https://github.com/libssh2/libssh2/issues/1290
libssh2: https://github.com/libssh2/libssh2/pull/1291
libssh2: https://github.com/libssh2/libssh2/commit/d34d9258b8420b19ec3f97b4cc5bf7aa7d98e35a
OpenSSH: https://www.openwall.com/lists/oss-security/2023/12/18/2
OpenSSH (strict key exchange): https://github.com/openssh/openssh-portable/commit/1edb00c58f8a6875fad6a497aa2bacf37f9e6cd5 (V_9_6_P1)
paramiko: https://github.com/paramiko/paramiko/issues/2337
phpseclib: https://github.com/phpseclib/phpseclib/issues/1972
phpseclib: https://github.com/phpseclib/phpseclib/commit/c8e3ab9317abae80d7f58fd9acd9214b57572b32 (1.0.22, 2.0.46, 3.0.35)
proftpd: https://github.com/proftpd/proftpd/issues/1760
proftpd: https://github.com/proftpd/proftpd/commit/7fba68ebb3ded3047a35aa639e115eba7d585682 (v1.3.9rc2)
proftpd: https://github.com/proftpd/proftpd/commit/bcec15efe6c53dac40420731013f1cd2fd54123b (v1.3.8b)
proftpd-mod-proxy: https://github.com/Castaglia/proftpd-mod_proxy/issues/257
proftpd-mod-proxy: https://github.com/Castaglia/proftpd-mod_proxy/commit/54612735629231de2242d6395d334539604872fb (v0.9.3)
PuTTY: https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/vuln-terrapin.html
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=9e099151574885f3c717ac10a633a9218db8e7bb (0.80)
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=f2e7086902b3605c96e54ef9c956ca7ab000010e (0.80)
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=9fcbb86f715bc03e58921482efe663aa0c662d62 (0.80)
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=244be5412728a7334a2d457fbac4e0a2597165e5 (0.80)
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=58fc33a155ad496bdcf380fa6193302240a15ae9 (0.80)
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=0b00e4ce26d89cd010e31e66fd02ac77cb982367 (0.80)
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=fdc891d17063ab26cf68c74245ab1fd9771556cb (0.80)
PuTTY: https://git.tartarus.org/?p=simon/putty.git;a=commit;h=b80a41d386dbfa1b095c17bd2ed001477f302d46 (0.80)
asyncssh: https://github.com/ronf/asyncssh/security/advisories/GHSA-hfmc-7525-mj55
asyncssh: https://github.com/ronf/asyncssh/commit/0bc73254f41acb140187e0c89606311f88de5b7b (v2.14.2)
tinyssh: https://github.com/janmojzis/tinyssh/issues/81
tinyssh: https://github.com/janmojzis/tinyssh/commit/ebaa1bd23c2c548af70cc8151e85c74f4c8594bb
tinyssh: 20230101-4 implements kex-strict-s-v00@openssh.com for the strict kex support. But
tinyssh: since there is no support for EXT_INFO in tinyssh, even with the present
tinyssh: chacha20-poly1305@openssh.com encryption algorith, there is no downgrade of the
tinyssh: connection security.