CVE-2023-48795: OpenSSH Terrapin attack (CVE-2023-48795)

Published Dec 12, 2023
·
Updated

Summary

Terrapin is a prefix truncation attack targeting the SSH protocol. More precisely, Terrapin breaks the integrity of SSH's secure channel. By carefully adjusting the sequence numbers during the handshake, an attacker can remove an arbitrary amount of messages sent by the client or server at the beginning of the secure channel without the client or server noticing it.

Mitigations

To mitigate this protocol vulnerability, OpenSSH suggested a so-called "strict kex" which alters the SSH handshake to ensure a Man-in-the-Middle attacker cannot introduce unauthenticated messages as well as convey sequence number manipulation across handshakes.

Warning: To take effect, both the client and server must support this countermeasure.

As a stop-gap measure, peers may also (temporarily) disable the affected algorithms and use unaffected alternatives like AES-GCM instead until patches are available.

Details

The SSH specifications of ChaCha20-Poly1305 (chacha20-poly1305@openssh.com) and Encrypt-then-MAC (-etm@openssh.com MACs) are vulnerable against an arbitrary prefix truncation attack (a.k.a. Terrapin attack). This allows for an extension negotiation downgrade by stripping the SSHMSGEXTINFO sent after the first message after SSHMSGNEWKEYS, downgrading security, and disabling attack countermeasures in some versions of OpenSSH. When targeting Encrypt-then-MAC, this attack requires the use of a CBC cipher to be practically exploitable due to the internal workings of the cipher mode. Additionally, this novel attack technique can be used to exploit previously unexploitable implementation flaws in a Man-in-the-Middle scenario.

The attack works by an attacker injecting an arbitrary number of SSHMSGIGNORE messages during the initial key exchange and consequently removing the same number of messages just after the initial key exchange has concluded. This is possible due to missing authentication of the excess SSHMSGIGNORE messages and the fact that the implicit sequence numbers used within the SSH protocol are only checked after the initial key exchange.

In the case of ChaCha20-Poly1305, the attack is guaranteed to work on every connection as this cipher does not maintain an internal state other than the message's sequence number. In the case of Encrypt-Then-MAC, practical exploitation requires the use of a CBC cipher; while theoretical integrity is broken for all ciphers when using this mode, message processing will fail at the application layer for CTR and stream ciphers.

For more details see https://terrapin-attack.com.

Impact

This attack targets the specification of ChaCha20-Poly1305 (chacha20-poly1305@openssh.com) and Encrypt-then-MAC (-etm@openssh.com), which are widely adopted by well-known SSH implementations and can be considered de-facto standard. These algorithms can be practically exploited; however, in the case of Encrypt-Then-MAC, we additionally require the use of a CBC cipher. As a consequence, this attack works against all well-behaving SSH implementations supporting either of those algorithms and can be used to downgrade (but not fully strip) connection security in case SSH extension negotiation (RFC8308) is supported. The attack may also enable attackers to exploit certain implementation flaws in a man-in-the-middle (MitM) scenario.

Other sources

Accessibility. A privacy issue was addressed with improved private data redaction for log entries.

— Apple

Admin Framework. A logic issue was addressed with improved checks.

— Apple

Airport. This issue was addressed with improved redaction of sensitive information.

— Apple

AppKit. A logic issue was addressed with improved restrictions.

— Apple

AppleMobileFileIntegrity. A downgrade issue affecting Intel-based Mac computers was addressed with additional code-signing restrictions.

— Apple

Credit

CVE-2023-48795, CVE-2023-51384, CVE-2023-51385, CVE-2024-23225, koocola, an anonymous researcher, ali yabuz, Kirin@@Pwnrin, Meysam Firouzi@@R00tkitsmm(Trend Micro Zero Day Initiative), @@08Tc3wBB(Jamf), CVE-2024-23283, Mickey Jin@@patch1t, Pedro Tôrres@@t0rr3sp3dr0, Bohdan Stasiuk@@Bohdan_Stasiuk, Harsh Tyagi, Wojciech Regula(SecuRing), CVE-2024-23296, Lyra Rebane (rebane2001), Matej Rabzelj, CVE-2024-23238, Yiğit Can YILMAZ@@yilmazcanyigit, luckyu@@uuulucky, K宝(Fudan University), LFY@@secsys(Fudan University), Lewis Hardy, Bistrit Dahal, CVE-2024-23241, CVE-2024-23242, Joshua Jewett@@JoshJewett33, Matthew Loewen, Deutsche Telekom Security GmbH sponsored by Bundesamt für Sicherheit in der Informationstechnik, anbu1024(SecANT), Pwn2car, James Lee@@Windowsrcer, Johan Carlsson (joaxcar), Georg Felber, Marco Squarcina, Junsung Lee(Trend Micro Zero Day Initiative), Zhenjiang Zhao(pangu team), Qianxin(CrowdStrike Counter Adversary Operations), (CrowdStrike Counter Adversary Operations), Amir Bazine(CrowdStrike Counter Adversary Operations), Karsten König(CrowdStrike Counter Adversary Operations), Dohyun Lee@@l33d0hyun, Lyutoon, Mr.R, Murray Mike, CVE-2024-23235, Xinru Chi(Pangu Lab), m4yfly with TianGong Team(Legendsec at Qi'anxin Group), Guilherme Rambo(Best Buddy Apps), Csaba Fitzl@@theevilbit(OffSec), CVE-2024-23205, CVE-2022-48554, Marc Newlin(SkySafe), Brian McNulty, Stephan Casas, CVE-2024-23291

Affected Software

292 affected componentsFixes available
Apple macOS Sonoma<14.4
14.4
Fortinet FortiAnalyzer=.
Fortinet FortiAnalyzer=.
Fortinet FortiEDR Manager>=6.2.0<=6.2.4
Fortinet FortiEDR Manager>=6.0
Fortinet FortiEDR Manager>=5.2
Fortinet FortiEDR Manager>=5.1
Fortinet FortiEDR Manager>=5.0
Fortinet FortiMail>=7.4.0<=7.4.1
Fortinet FortiMail>=7.2.0<=7.2.5
Fortinet FortiMail>=7.0.0<=7.0.7
Fortinet FortiMail>=6.4
Fortinet FortiMail>=6.2
Fortinet FortiManager=.
Fortinet FortiManager=.
Fortinet FortiNAC-F>=7.2.0<=7.2.5
Fortinet FortiNDR>=7.4.0<=7.4.2
Fortinet FortiNDR>=7.2.0<=7.2.1
Fortinet FortiNDR>=7.1
Fortinet FortiNDR>=7.0.0<=7.0.5
Fortinet FortiRecorder>=7.0.0<=7.0.3
Fortinet FortiRecorder>=6.4
Fortinet FortiRecorder>=6.0
Fortinet FortiSIEM>=7.1.0<=7.1.3
Fortinet FortiSIEM>=7.0
Fortinet FortiSIEM>=6.7
Fortinet FortiSIEM>=6.6
Fortinet FortiSIEM>=6.5
Fortinet FortiSIEM>=6.4
Fortinet FortiSIEM>=6.3
Fortinet FortiSIEM>=6.2
Fortinet FortiSIEM>=6.1
Fortinet FortiSIEM>=5.4
Fortinet FortiSIEM>=5.3
Fortinet FortiSOAR>=7.4.0<=7.4.2
Fortinet FortiSOAR>=7.3
Fortinet FortiSOAR>=7.2
Fortinet FortiVoice>=7.0.0<=7.0.1
Fortinet FortiVoice>=6.4.0<=6.4.8
Fortinet FortiVoice>=6.0.0<=6.0.12
Fortinet FortiWeb>=7.4.0<=7.4.2
Fortinet FortiWeb>=7.2.0<=7.2.7
Fortinet FortiWeb>=7.0.0<=7.0.10
Fortinet FortiWeb>=6.4
Fortinet FortiWeb>=6.3
Fortinet FortiWeb>=6.2
go/golang.org/x/crypto<0.0.0-20231218163308-9d2ee975ef9f
0.0.0-20231218163308-9d2ee975ef9f
go/golang.org/x/crypto>=0.1.0<0.17.0
0.17.0
pip/paramiko>=2.5.0<3.4.0
3.4.0
rust/russh<0.40.2
0.40.2
IBM QRadar Network Packet Capture<=7.5.0 - 7.5.0 Update Package 7
Palo Alto Networks PAN-OS =9.0.0, =9.1.0, =10.1.0, <10.2.14, =10.2.0, =11.0.0, <11.1.8, =11.1.0, <11.2.8, =11.2.0
10.2.1411.1.811.2.8
Palo Alto Networks Prisma SD-WAN ION<5.6.19, =5.6, <6.1.8, =6.1, =6.2, <6.3.2, =6.3
5.6.196.1.86.3.2
redhat/putty<0.80
0.80
redhat/asyncssh<2.14.1
2.14.1
redhat/libssh<0.9.8
0.9.8
redhat/libssh<0.10.6
0.10.6
redhat/golang.org/x/crypto/ssh<0.17.0
0.17.0
OpenBSD OpenSSH<9.6
Putty PuTTY<0.80
Filezilla-project Filezilla Client<3.66.4
All of the following
Apple macOS
Panic Transmit 5<5.10.4
All of the following
Apple macOS
Panic Nova<11.8
Roumenpetrov Pkixssh<14.4
WinSCP WinSCP<6.2.2
Bitvise SSH Client<9.33
Bitvise SSH Server<9.32
Lancom-systems Lcos<=3.66.4
Lancom-systems Lcos Fx
Lancom-systems Lcos Lx
Lancom-systems Lcos Sx=4.20
Lancom-systems Lcos Sx=5.20
Lancom-systems Lanconfig
VanDyke Securecrt<9.4.3
libssh libssh<0.10.6
net-ssh Net-ssh Ruby=7.2.0
Ssh2 Project Ssh2 Node.js<=1.11.0
ProFTPD ProFTPD<=1.3.8b
FreeBSD FreeBSD<=12.4
Crates Thrussh<0.35.1
Tera Term Project Tera Term<=5.1
Oryx-embedded Cyclone Ssh<2.3.4
CrushFTP CrushFTP<=10.6.0
NetSarang XShell 7<build__0144
Paramiko Paramiko<3.4.0
redhat OpenShift Container Platform=4.0
redhat Openstack Platform=16.1
redhat Openstack Platform=16.2
redhat Openstack Platform=17.1
redhat Ceph Storage=6.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Openshift Serverless
redhat Openshift Gitops
redhat Openshift Pipelines
redhat Openshift Developer Tools And Services
redhat Openshift Data Foundation=4.0
redhat Openshift Api For Data Protection
redhat Openshift Virtualization=4
redhat Storage=3.0
redhat Discovery
redhat Openshift Dev Spaces
redhat Cert-manager Operator For Red Hat Openshift
redhat keycloak
redhat JBoss Enterprise Application Platform=7.0
redhat Single Sign-on=7.0
redhat Advanced Cluster Security=3.0
redhat Advanced Cluster Security=4.0
Golang crypto<0.17.0
Russh Project Russh Rust<0.40.2
Sftpgo Project Sftpgo<2.5.6
Erlang Erlang\/otp<22.3.4.27
Erlang Erlang\/otp>=23.0<23.3.4.20
Erlang Erlang\/otp>=24.0<24.3.4.15
Erlang Erlang\/otp>=25.0<25.3.2.8
Erlang Erlang\/otp>=26.0<26.2.1
Matez Jsch<0.2.15
libssh2 libssh2<1.11.1
Asyncssh Project Asyncssh<2.14.2
Dropbear Ssh Project Dropbear Ssh<2022.83
Jadaptive Maverick Synergy Java Ssh Api<3.1.0-snapshot
SSH ssh<4.9.1.5
SSH ssh>=4.10<4.11.1.7
SSH ssh>=4.12<4.13.2.4
SSH ssh>=4.14<4.15.3.1
SSH ssh>=5.0<5.1.1
Thorntech Sftp Gateway Firmware<3.4.6
Netgate pfSense Plus<=23.09.1
Netgate pfSense CE<=2.7.2
CrushFTP CrushFTP<10.6.0
ConnectBot Sshlib<2.2.22
Apache sshd<=2.11.0
Apache sshj<=0.37.0
TinySSH TinySSH<=20230101
trilead ssh2=6401
9bis Kitty<=0.76.1.13
All of the following
Gentoo Security
Debian Debian Linux
Fedoraproject Fedora=38
Fedoraproject Fedora=39
Debian Debian Linux=10.0
Apple macOS>=14.0<14.4
alpine/buildah<1.33.2-r1
1.33.2-r1
alpine/buildah<1.34.0-r1
1.34.0-r1
alpine/buildah<1.34.0-r1
1.34.0-r1
alpine/buildah<1.34.0-r1
1.34.0-r1
alpine/buildah<1.34.0-r1
1.34.0-r1
alpine/buildah<1.34.0-r1
1.34.0-r1
alpine/doctl<1.102.0-r0
1.102.0-r0
alpine/doctl<1.102.0-r0
1.102.0-r0
alpine/doctl<1.102.0-r0
1.102.0-r0
alpine/doctl<1.102.0-r0
1.102.0-r0
alpine/doctl<1.102.0-r0
1.102.0-r0
alpine/doctl<1.102.0-r0
1.102.0-r0
alpine/dropbear<2022.82-r2
2022.82-r2
alpine/dropbear<2022.83-r1
2022.83-r1
alpine/dropbear<2022.83-r2
2022.83-r2
alpine/dropbear<2022.83-r4
2022.83-r4
alpine/dropbear<2022.83-r4
2022.83-r4
alpine/dropbear<2022.83-r4
2022.83-r4
alpine/dropbear<2022.83-r4
2022.83-r4
alpine/dropbear<2022.83-r4
2022.83-r4
alpine/dropbear<2022.83-r4
2022.83-r4
alpine/erlang<26.2.1-r0
26.2.1-r0
alpine/erlang<26.2.1-r0
26.2.1-r0
alpine/erlang<26.2.1-r0
26.2.1-r0
alpine/erlang26<26.2.1-r0
26.2.1-r0
alpine/filezilla<3.66.4-r0
3.66.4-r0
alpine/filezilla<3.66.4-r0
3.66.4-r0
alpine/filezilla<3.66.4-r0
3.66.4-r0
alpine/filezilla<3.66.4-r0
3.66.4-r0
alpine/filezilla<3.66.4-r0
3.66.4-r0
alpine/filezilla<3.66.4-r0
3.66.4-r0
alpine/forgejo<1.21.3.0-r0
1.21.3.0-r0
alpine/forgejo<1.21.3.0-r0
1.21.3.0-r0
alpine/forgejo<1.21.3.0-r0
1.21.3.0-r0
alpine/forgejo<1.21.3.0-r0
1.21.3.0-r0
alpine/gitea<1.21.3-r0
1.21.3-r0
alpine/gitea<1.21.3-r0
1.21.3-r0
alpine/gitea<1.21.3-r0
1.21.3-r0
alpine/gitea<1.21.3-r0
1.21.3-r0
alpine/gitea<1.21.3-r0
1.21.3-r0
alpine/gitea<1.21.3-r0
1.21.3-r0
alpine/k3s<1.29.3.1-r0
1.29.3.1-r0
alpine/k3s<1.29.3.1-r0
1.29.3.1-r0
alpine/k3s<1.29.3.1-r0
1.29.3.1-r0
alpine/k3s<1.29.3.1-r0
1.29.3.1-r0
alpine/k3s<1.29.3.1-r0
1.29.3.1-r0
alpine/libssh<0.10.6-r0
0.10.6-r0
alpine/libssh<0.10.6-r0
0.10.6-r0
alpine/libssh<0.10.6-r0
0.10.6-r0
alpine/libssh<0.10.6-r0
0.10.6-r0
alpine/libssh<0.10.6-r0
0.10.6-r0
alpine/libssh<0.10.6-r0
0.10.6-r0
alpine/libssh2<1.11.0-r0
1.11.0-r0
alpine/libssh2<1.11.0-r0
1.11.0-r0
alpine/libssh2<1.11.0-r0
1.11.0-r0
alpine/libssh2<1.11.0-r1
1.11.0-r1
alpine/libssh2<1.11.0-r1
1.11.0-r1
alpine/libssh2<1.11.0-r1
1.11.0-r1
alpine/libssh2<1.11.0-r1
1.11.0-r1
alpine/libssh2<1.11.0-r1
1.11.0-r1
alpine/libssh2<1.11.0-r1
1.11.0-r1
alpine/nebula<1.7.2-r5
1.7.2-r5
alpine/nebula<1.8.1-r0
1.8.1-r0
alpine/nebula<1.8.1-r0
1.8.1-r0
alpine/nebula<1.8.1-r0
1.8.1-r0
alpine/nebula<1.8.1-r0
1.8.1-r0
alpine/nebula<1.8.1-r0
1.8.1-r0
alpine/openssh<9.0_p1-r5
9.0_p1-r5
alpine/openssh<9.1_p1-r5
9.1_p1-r5
alpine/openssh<9.3_p2-r1
9.3_p2-r1
alpine/openssh<9.6_p1-r0
9.6_p1-r0
alpine/openssh<9.6_p1-r0
9.6_p1-r0
alpine/openssh<9.6_p1-r0
9.6_p1-r0
alpine/openssh<9.6_p1-r0
9.6_p1-r0
alpine/openssh<9.6_p1-r0
9.6_p1-r0
alpine/openssh<9.6_p1-r0
9.6_p1-r0
alpine/pijul<1.0.0_beta8-r0
1.0.0_beta8-r0
alpine/pijul<1.0.0_beta8-r1
1.0.0_beta8-r1
alpine/pijul<1.0.0_beta8-r1
1.0.0_beta8-r1
alpine/pijul<1.0.0_beta8-r1
1.0.0_beta8-r1
alpine/pijul<1.0.0_beta8-r1
1.0.0_beta8-r1
alpine/pijul<1.0.0_beta8-r1
1.0.0_beta8-r1
alpine/podman<4.8.1-r1
4.8.1-r1
alpine/podman<4.8.2-r1
4.8.2-r1
alpine/podman<4.8.2-r1
4.8.2-r1
alpine/podman<4.8.2-r1
4.8.2-r1
alpine/podman<4.8.2-r1
4.8.2-r1
alpine/podman<4.8.2-r1
4.8.2-r1
alpine/podman-tui<0.15.0-r0
0.15.0-r0
alpine/podman-tui<0.15.0-r0
0.15.0-r0
alpine/podman-tui<0.15.0-r0
0.15.0-r0
alpine/podman-tui<0.15.0-r0
0.15.0-r0
alpine/podman-tui<0.15.0-r0
0.15.0-r0
alpine/podman-tui<0.15.0-r0
0.15.0-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/proftpd<1.3.8b-r0
1.3.8b-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/putty<0.80-r0
0.80-r0
alpine/py3-asyncssh<2.14.2-r0
2.14.2-r0
alpine/py3-asyncssh<2.14.2-r0
2.14.2-r0
alpine/py3-asyncssh<2.14.2-r0
2.14.2-r0
alpine/py3-asyncssh<2.14.2-r0
2.14.2-r0
alpine/py3-asyncssh<2.14.2-r0
2.14.2-r0
alpine/py3-asyncssh<2.14.2-r0
2.14.2-r0
alpine/py3-paramiko<3.4.0-r0
3.4.0-r0
alpine/py3-paramiko<3.4.0-r0
3.4.0-r0
alpine/py3-paramiko<3.4.0-r0
3.4.0-r0
alpine/py3-paramiko<3.4.0-r0
3.4.0-r0
alpine/py3-paramiko<3.4.0-r0
3.4.0-r0
alpine/py3-paramiko<3.4.0-r0
3.4.0-r0
alpine/tinyssh<20230101-r3
20230101-r3
alpine/tinyssh<20230101-r3
20230101-r3
alpine/tinyssh<20230101-r3
20230101-r3
alpine/tinyssh<20230101-r3
20230101-r3
alpine/tinyssh<20230101-r3
20230101-r3
alpine/tinyssh<20230101-r3
20230101-r3
debian/dropbear
2020.81-3+deb11u12022.83-1+deb12u12022.83-4
debian/erlang
1:23.2.6+dfsg-1+deb11u21:25.2.3+dfsg-1+deb12u11:25.3.2.8+dfsg-1
debian/filezilla
3.52.2-3+deb11u13.63.0-1+deb12u33.66.4-1
debian/golang-go.crypto<=1:0.4.0-1
1:0.17.0-1
debian/jsch
debian/libssh
0.9.8-0+deb11u10.10.6-0+deb12u10.10.6-1
debian/libssh2
1.11.0-4
debian/openssh
1:7.9p1-10+deb10u41:8.4p1-5+deb11u31:9.2p1-2+deb12u21:9.6p1-1
debian/paramiko<=2.12.0-2
3.4.0-1
debian/php-phpseclib
2.0.30-2~deb10u22.0.30-2+deb11u12.0.42-1+deb12u12.0.46-1
debian/php-phpseclib3
3.0.19-1+deb12u23.0.35-1
debian/phpseclib
1.0.19-3~deb10u21.0.19-3+deb11u11.0.20-1+deb12u11.0.22-1
debian/proftpd-dfsg
1.3.7a+dfsg-12+deb11u31.3.8+dfsg-4+deb12u31.3.8.b+dfsg-1
debian/proftpd-mod-proxy
0.9.2-1+deb12u10.9.3-1
debian/putty
0.74-1+deb11u1~deb10u10.74-1+deb11u10.78-2+deb12u10.80-1
debian/python-asyncssh
1.12.2-1+deb10u12.5.0-0.1+deb11u12.10.1-2+deb12u12.15.0-1
debian/tinyssh<=20230101-1
20230101-4
debian/trilead-ssh2<=6401+svn158-1.1, <=6401+svn158-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apple macOS to a version that resolves this vulnerability.

    Fixed in 14.4
  2. Upgrade

    Upgrade go/golang.org/x/crypto to a version that resolves this vulnerability.

    Fixed in 0.0.0-20231218163308-9d2ee975ef9f
  3. Upgrade

    Upgrade go/golang.org/x/crypto to a version that resolves this vulnerability.

    Fixed in 0.17.0
  4. Upgrade

    Upgrade pip/paramiko to a version that resolves this vulnerability.

    Fixed in 3.4.0
  5. Upgrade

    Upgrade rust/russh to a version that resolves this vulnerability.

    Fixed in 0.40.2
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.2.14Fixed in 11.1.8Fixed in 11.2.8
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.6.19Fixed in 6.1.8Fixed in 6.3.2
  8. Upgrade

    Upgrade redhat/PuTTY to a version that resolves this vulnerability.

    Fixed in 0.80
  9. Upgrade

    Upgrade redhat/AsyncSSH to a version that resolves this vulnerability.

    Fixed in 2.14.1
  10. Upgrade

    Upgrade redhat/libssh to a version that resolves this vulnerability.

    Fixed in 0.9.8
  11. Upgrade

    Upgrade redhat/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6
  12. Upgrade

    Upgrade redhat/golang.org/x/crypto/ssh to a version that resolves this vulnerability.

    Fixed in 0.17.0
  13. Upgrade

    Upgrade alpine/buildah to a version that resolves this vulnerability.

    Fixed in 1.33.2-r1
  14. Upgrade

    Upgrade alpine/buildah to a version that resolves this vulnerability.

    Fixed in 1.34.0-r1
  15. Upgrade

    Upgrade alpine/doctl to a version that resolves this vulnerability.

    Fixed in 1.102.0-r0
  16. Upgrade

    Upgrade alpine/dropbear to a version that resolves this vulnerability.

    Fixed in 2022.82-r2
  17. Upgrade

    Upgrade alpine/dropbear to a version that resolves this vulnerability.

    Fixed in 2022.83-r1
  18. Upgrade

    Upgrade alpine/dropbear to a version that resolves this vulnerability.

    Fixed in 2022.83-r2
  19. Upgrade

    Upgrade alpine/dropbear to a version that resolves this vulnerability.

    Fixed in 2022.83-r4
  20. Upgrade

    Upgrade alpine/erlang to a version that resolves this vulnerability.

    Fixed in 26.2.1-r0
  21. Upgrade

    Upgrade alpine/erlang26 to a version that resolves this vulnerability.

    Fixed in 26.2.1-r0
  22. Upgrade

    Upgrade alpine/filezilla to a version that resolves this vulnerability.

    Fixed in 3.66.4-r0
  23. Upgrade

    Upgrade alpine/forgejo to a version that resolves this vulnerability.

    Fixed in 1.21.3.0-r0
  24. Upgrade

    Upgrade alpine/gitea to a version that resolves this vulnerability.

    Fixed in 1.21.3-r0
  25. Upgrade

    Upgrade alpine/k3s to a version that resolves this vulnerability.

    Fixed in 1.29.3.1-r0
  26. Upgrade

    Upgrade alpine/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6-r0
  27. Upgrade

    Upgrade alpine/libssh2 to a version that resolves this vulnerability.

    Fixed in 1.11.0-r0
  28. Upgrade

    Upgrade alpine/libssh2 to a version that resolves this vulnerability.

    Fixed in 1.11.0-r1
  29. Upgrade

    Upgrade alpine/nebula to a version that resolves this vulnerability.

    Fixed in 1.7.2-r5
  30. Upgrade

    Upgrade alpine/nebula to a version that resolves this vulnerability.

    Fixed in 1.8.1-r0
  31. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.0_p1-r5
  32. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.1_p1-r5
  33. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.3_p2-r1
  34. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.6_p1-r0
  35. Upgrade

    Upgrade alpine/pijul to a version that resolves this vulnerability.

    Fixed in 1.0.0_beta8-r0
  36. Upgrade

    Upgrade alpine/pijul to a version that resolves this vulnerability.

    Fixed in 1.0.0_beta8-r1
  37. Upgrade

    Upgrade alpine/podman to a version that resolves this vulnerability.

    Fixed in 4.8.1-r1
  38. Upgrade

    Upgrade alpine/podman to a version that resolves this vulnerability.

    Fixed in 4.8.2-r1
  39. Upgrade

    Upgrade alpine/podman-tui to a version that resolves this vulnerability.

    Fixed in 0.15.0-r0
  40. Upgrade

    Upgrade alpine/proftpd to a version that resolves this vulnerability.

    Fixed in 1.3.8b-r0
  41. Upgrade

    Upgrade alpine/putty to a version that resolves this vulnerability.

    Fixed in 0.80-r0
  42. Upgrade

    Upgrade alpine/py3-asyncssh to a version that resolves this vulnerability.

    Fixed in 2.14.2-r0
  43. Upgrade

    Upgrade alpine/py3-paramiko to a version that resolves this vulnerability.

    Fixed in 3.4.0-r0
  44. Upgrade

    Upgrade alpine/tinyssh to a version that resolves this vulnerability.

    Fixed in 20230101-r3
  45. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.4
  46. Upgrade

    Upgrade debian/dropbear to a version that resolves this vulnerability.

    Fixed in 2020.81-3+deb11u1Fixed in 2022.83-1+deb12u1Fixed in 2022.83-4
  47. Upgrade

    Upgrade debian/erlang to a version that resolves this vulnerability.

    Fixed in 1:23.2.6+dfsg-1+deb11u2Fixed in 1:25.2.3+dfsg-1+deb12u1Fixed in 1:25.3.2.8+dfsg-1
  48. Upgrade

    Upgrade debian/filezilla to a version that resolves this vulnerability.

    Fixed in 3.52.2-3+deb11u1Fixed in 3.63.0-1+deb12u3Fixed in 3.66.4-1
  49. Upgrade

    Upgrade debian/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.17.0-1
  50. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.9.8-0+deb11u1Fixed in 0.10.6-0+deb12u1Fixed in 0.10.6-1
  51. Upgrade

    Upgrade debian/libssh2 to a version that resolves this vulnerability.

    Fixed in 1.11.0-4
  52. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:7.9p1-10+deb10u4Fixed in 1:8.4p1-5+deb11u3Fixed in 1:9.2p1-2+deb12u2Fixed in 1:9.6p1-1
  53. Upgrade

    Upgrade debian/paramiko to a version that resolves this vulnerability.

    Fixed in 3.4.0-1
  54. Upgrade

    Upgrade debian/php-phpseclib to a version that resolves this vulnerability.

    Fixed in 2.0.30-2~deb10u2Fixed in 2.0.30-2+deb11u1Fixed in 2.0.42-1+deb12u1Fixed in 2.0.46-1
  55. Upgrade

    Upgrade debian/php-phpseclib3 to a version that resolves this vulnerability.

    Fixed in 3.0.19-1+deb12u2Fixed in 3.0.35-1
  56. Upgrade

    Upgrade debian/phpseclib to a version that resolves this vulnerability.

    Fixed in 1.0.19-3~deb10u2Fixed in 1.0.19-3+deb11u1Fixed in 1.0.20-1+deb12u1Fixed in 1.0.22-1
  57. Upgrade

    Upgrade debian/proftpd-dfsg to a version that resolves this vulnerability.

    Fixed in 1.3.7a+dfsg-12+deb11u3Fixed in 1.3.8+dfsg-4+deb12u3Fixed in 1.3.8.b+dfsg-1
  58. Upgrade

    Upgrade debian/proftpd-mod-proxy to a version that resolves this vulnerability.

    Fixed in 0.9.2-1+deb12u1Fixed in 0.9.3-1
  59. Upgrade

    Upgrade debian/putty to a version that resolves this vulnerability.

    Fixed in 0.74-1+deb11u1~deb10u1Fixed in 0.74-1+deb11u1Fixed in 0.78-2+deb12u1Fixed in 0.80-1
  60. Upgrade

    Upgrade debian/python-asyncssh to a version that resolves this vulnerability.

    Fixed in 1.12.2-1+deb10u1Fixed in 2.5.0-0.1+deb11u1Fixed in 2.10.1-2+deb12u1Fixed in 2.15.0-1
  61. Upgrade

    Upgrade debian/tinyssh to a version that resolves this vulnerability.

    Fixed in 20230101-4
  62. Upgrade

    Upgrade OpenSSH to a version that resolves this vulnerability.

    Fixed in 9.6
  63. Upgrade

    Upgrade PAN-OS SSH client to a version that resolves this vulnerability.

    Fixed in 10.2.11
  64. Upgrade

    Upgrade PAN-OS SSH client to a version that resolves this vulnerability.

    Fixed in 11.0.6
  65. Upgrade

    Upgrade PAN-OS SSH client to a version that resolves this vulnerability.

    Fixed in 11.1.3
  66. Upgrade

    Upgrade PAN-OS SSH server to a version that resolves this vulnerability.

    Fixed in 10.2.14
  67. Upgrade

    Upgrade PAN-OS SSH server to a version that resolves this vulnerability.

    Fixed in 11.1.8
  68. Upgrade

    Upgrade PAN-OS SSH server to a version that resolves this vulnerability.

    Fixed in 11.2.8
  69. Upgrade

    Upgrade Prisma SD-WAN ION to a version that resolves this vulnerability.

    Fixed in 5.6.19
  70. Upgrade

    Upgrade Prisma SD-WAN ION to a version that resolves this vulnerability.

    Fixed in 6.1.8
  71. Upgrade

    Upgrade Prisma SD-WAN ION to a version that resolves this vulnerability.

    Fixed in 6.3.2
  72. Upgrade

    Upgrade Maverick Synergy Java SSH API to a version that resolves this vulnerability.

    Fixed in 3.1.0-SNAPSHOT
  73. Upgrade

    Upgrade PuTTY to a version that resolves this vulnerability.

    Fixed in 0.80
  74. Upgrade

    Upgrade AsyncSSH to a version that resolves this vulnerability.

    Fixed in 2.14.2
  75. Upgrade

    Upgrade golang.org/x/crypto to a version that resolves this vulnerability.

    Fixed in 0.17.0
  76. Upgrade

    Upgrade libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6
  77. Upgrade

    Upgrade Thorn Tech SFTP Gateway to a version that resolves this vulnerability.

    Fixed in 3.4.6
  78. Upgrade

    Upgrade Tera Term to a version that resolves this vulnerability.

    Fixed in 5.1
  79. Upgrade

    Upgrade Paramiko to a version that resolves this vulnerability.

    Fixed in 3.4.0
  80. Upgrade

    Upgrade jsch to a version that resolves this vulnerability.

    Fixed in 0.2.15
  81. Upgrade

    Upgrade SFTPGo to a version that resolves this vulnerability.

    Fixed in 2.5.6
  82. Upgrade

    Upgrade ORYX CycloneSSH to a version that resolves this vulnerability.

    Fixed in 2.3.4
  83. Upgrade

    Upgrade NetSarang XShell 7 to a version that resolves this vulnerability.

    Fixed in Build 0144
  84. Upgrade

    Upgrade CrushFTP to a version that resolves this vulnerability.

    Fixed in 10.6.0
  85. Upgrade

    Upgrade ConnectBot SSH library to a version that resolves this vulnerability.

    Fixed in 2.2.22
  86. Upgrade

    Upgrade ProFTPD to a version that resolves this vulnerability.

    Fixed in 1.3.9rc2
  87. Upgrade

    Upgrade FileZilla to a version that resolves this vulnerability.

    Fixed in 3.66.4
  88. Upgrade

    Upgrade Nova to a version that resolves this vulnerability.

    Fixed in 11.8
  89. Upgrade

    Upgrade PKIX-SSH to a version that resolves this vulnerability.

    Fixed in 14.4
  90. Upgrade

    Upgrade SecureCRT to a version that resolves this vulnerability.

    Fixed in 9.4.3
  91. Upgrade

    Upgrade Transmit5 to a version that resolves this vulnerability.

    Fixed in 5.10.4
  92. Upgrade

    Upgrade Win32-OpenSSH to a version that resolves this vulnerability.

    Fixed in 9.5.0.0p1-Beta
  93. Upgrade

    Upgrade WinSCP to a version that resolves this vulnerability.

    Fixed in 6.2.2
  94. Upgrade

    Upgrade Bitvise SSH Server to a version that resolves this vulnerability.

    Fixed in 9.32
  95. Upgrade

    Upgrade Bitvise SSH Client to a version that resolves this vulnerability.

    Fixed in 9.33
  96. Upgrade

    Upgrade mscdex ssh2 module for Node.js to a version that resolves this vulnerability.

    Fixed in 1.15.0
  97. Upgrade

    Upgrade thrussh library for Rust to a version that resolves this vulnerability.

    Fixed in 0.35.1
  98. Upgrade

    Upgrade Russh crate for Rust to a version that resolves this vulnerability.

    Fixed in 0.40.2
  99. Configuration

    Configure the in-use SSH profile to contain at least one cipher and at least one MAC algorithm, removing support for CHACHA20-POLY1305 and Encrypt-then-MAC algorithms. Both the client and server must support this countermeasure.

    SSH client and server configuration Cipher and MAC algorithms = Disable chacha20-poly1305@openssh.com and -etm@openssh.com MAC algorithms; use unaffected alternatives such as AES-GCM

Event History

Dec 12, 2023
Data Sourced
04:59 PM
DescriptionSeverityAffected Software
Dec 18, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverity
Updated
12:00 AM
RemedyAffected Software
Updated
12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Remedy
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Updated
05:24 PM
Description
Updated
06:15 PM
Description
Updated
07:15 PM
Description
Advisory Published
07:22 PM
Advisory Published
07:22 PM
Updated
09:38 PM
Affected Software
Dec 19, 2023
Updated
05:15 AM
Description
News Published
05:03 PM
Updated
07:15 PM
Description
Updated
08:35 PM
DescriptionAffected Software
Dec 20, 2023
News Published
via The Register·08:34 AM
Updated
09:15 PM
Description
Updated
11:15 PM
Description
Dec 22, 2023
Updated
01:53 PM
Affected Software
Updated
02:50 PM
Description
Updated
03:15 PM
Description
Dec 24, 2023
Updated
05:15 PM
Description
Dec 26, 2023
Updated
04:06 AM
Description
Updated
04:15 AM
Description
Dec 28, 2023
Data Sourced
06:26 PM
Weakness
Dec 29, 2023
Updated
03:15 AM
Affected Software
Dec 30, 2023
Updated
03:15 AM
Affected Software
Jan 5, 2024
Updated
06:15 PM
Affected Software
Jan 9, 2024
Advisory Published
via FortiGuard·12:00 AM
Data Sourced
via FortiGuard·12:00 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via Palo Alto Networks·01:30 AM
Data Sourced
via Palo Alto Networks·01:30 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via Palo Alto Networks·01:30 AM
Affected Software
Updated
via Palo Alto Networks·01:30 AM
RemedyAffected Software
Updated
via Palo Alto Networks·01:30 AM
Remedy
Event
via Palo Alto Networks·01:30 AM
Jan 11, 2024
Data Sourced
via MITRE·03:06 AM
Description
Data Sourced
via NVD·04:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:15 AM
Affected Software
Data Sourced
via GitHub·03:42 PM
DescriptionSeverityWeaknessAffected Software
Updated
via GitHub·03:42 PM
Weakness
Data Sourced
via Red Hat·05:58 PM
DescriptionSeverityAffected Software
Jan 15, 2024
Updated
via NVD·08:15 AM
Affected Software
Jan 16, 2024
Updated
via Red Hat·10:44 AM
Affected Software
Jan 18, 2024
Updated
via NVD·03:15 AM
Affected Software
Jan 19, 2024
Updated
via NVD·04:15 AM
Affected Software
Jan 25, 2024
Updated
via NVD·04:15 AM
Affected Software
Jan 29, 2024
Updated
via NVD·07:15 AM
Affected Software
Updated
via NVD·09:15 AM
Affected Software
Feb 5, 2024
Updated
via GitHub·11:15 PM
Affected Software
Mar 7, 2024
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Affected Software
Updated
via NVD·07:15 PM
Affected Software
Mar 13, 2024
Updated
via NVD·09:15 PM
Affected Software
Mar 20, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Mar 26, 2024
Updated
via Apple·12:00 AM
Affected Software
Apr 25, 2024
Updated
via NVD·10:15 PM
Affected Software
Apr 29, 2024
Updated
via NVD·06:41 PM
Affected Software
May 1, 2024
Updated
via NVD·05:15 PM
Affected Software
Updated
via NVD·06:15 PM
Affected Software
May 13, 2024
Updated
via Apple·12:00 AM
Affected Software
May 29, 2024
Updated
via Apple·12:00 AM
Affected Software
Jul 23, 2024
Updated
via IBM·12:00 AM
Affected Software
Jul 29, 2024
Updated
via Apple·12:00 AM
Affected Software
Oct 14, 2024
Advisory Published
via Palo Alto Networks·07:50 PM
Oct 16, 2024
Updated
via IBM·12:00 AM
DescriptionAffected Software
Oct 21, 2024
Updated
via IBM·12:00 AM
DescriptionAffected Software
Dec 2, 2024
Updated
via NVD·02:54 PM
RemedyAffected Software
Jan 8, 2025
Exploit Published
via GitHub·07:19 AM
Feb 4, 2025
Updated
via IBM·12:00 AM
DescriptionAffected Software
Feb 5, 2025
Updated
via Apple·12:00 AM
Affected Software
Mar 12, 2025
Updated
via IBM·12:00 AM
DescriptionAffected Software
Mar 14, 2025
Updated
via IBM·12:00 AM
Affected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
DescriptionAffected Software
May 14, 2025
Updated
via NVD·08:15 PM
Affected Software
May 23, 2025
Updated
via NVD·02:24 AM
Affected Software
Jun 24, 2025
Updated
via GitHub·05:47 PM
Affected Software
Aug 27, 2025
Updated
via NVD·09:15 PM
SeverityWeaknessAffected Software
Sep 15, 2026
Updated
via Ubuntu·12:00 AM
Description
Nov 3, 2026
Data Sourced
via OSV·06:31 AM
Affected Software
Updated
via OSV·12:30 PM
Affected Software
Nov 7, 2026
Updated
via OSV·08:30 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-48795?

CVE-2023-48795 has been classified as a high severity vulnerability affecting the integrity of the SSH protocol.

2

How do I fix CVE-2023-48795?

To fix CVE-2023-48795, upgrade to the recommended versions of affected software such as Paramiko 3.4.0 or higher, and ensure all SSH implementations are updated accordingly.

3

What types of software are affected by CVE-2023-48795?

CVE-2023-48795 impacts various SSH implementations including Paramiko, OpenSSH, PuTTY, and several other cryptographic libraries.

4

Can CVE-2023-48795 be exploited remotely?

Yes, CVE-2023-48795 can be exploited remotely by attackers during the SSH handshake process.

5

What is the nature of the attack described in CVE-2023-48795?

CVE-2023-48795 refers to a prefix truncation attack, which compromises the integrity of the SSH secure channel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203