Terrapin Attack Downgrades SSH Handshake Protections in Multiple Implementations
Patch & Detection Intelligence · 4 sources · Updated 5mo ago · First seen May 25, 2026

Researchers disclosed the Terrapin attack, a man-in-the-middle flaw in the SSH transport protocol tracked as CVE-2023-48795, that can corrupt the handshake and strip or disable negotiated security features. The attack exploits sequence number manipulation and prefix truncation in the SSH Binary Packet Protocol, affecting connections that use ChaCha20-Poly1305 and certain CBC with Encrypt-then-MAC configurations. The issue impacts OpenSSH before 9.6 and a broad set of SSH clients, servers, libraries, and products; researchers reported that 77% of Internet-exposed SSH servers supported at least one vulnerable mode and 57% preferred one.
The disclosure also highlighted implementation-specific flaws in AsyncSSH—CVE-2023-46445 and CVE-2023-46446—that could enable more severe outcomes, including redirecting a victim into an attacker-controlled shell account under the right conditions. Ruhr University Bochum researchers released technical details, proof-of-concept code, and a scanner after coordinated vendor fixes, while maintainers shipped updates including OpenSSH 9.6, PuTTY 0.8, libssh 0.10.6/0.9.8, and AsyncSSH 2.14.1/2.14.2. Defenders were urged to patch affected software and, where possible, disable vulnerable cipher modes in favor of safer options such as AES-GCM.
Why it matters
Impact assessment
Terrapin is a protocol-level SSH downgrade vulnerability that affects a wide range of SSH clients, servers, libraries, and embedded products, including OpenSSH before 9.6 and many third-party implementations. The primary impact is loss of negotiated handshake protections, which can weaken authentication and disable security extensions during session establishment; in AsyncSSH, implementation-specific flaws can enable more serious session redirection outcomes.
The exposure is broad rather than niche: researchers reported 77% of Internet-exposed SSH servers supported at least one practically exploitable mode and 57% preferred one. Exploitation requires an active man-in-the-middle position, so risk is highest for administrative access over untrusted or interceptable networks, managed service paths, VPN edge scenarios, and internal east-west traffic where network interception is plausible.
Affected populations and products
- Organizations using SSH for remote administration, automation, file transfer, orchestration, CI/CD, and device management
- Administrators, developers, DevOps teams, MSPs, and operators relying on SSH clients and libraries
- Products and implementations explicitly listed as affected:
- OpenSSH before 9.6
- PuTTY before 0.80
- AsyncSSH before 2.14.2
- libssh before 0.10.6 and 0.9.8 branch before fixed release
- golang.org/x/crypto before 0.17.0
- Paramiko before 3.4.0
- WinSCP before 6.2.2
- Win32-OpenSSH before 9.5.0.0p1-Beta
- Dropbear through 2022.83
- libssh2 through 1.11.0
- Apache MINA sshd through 2.11.0
- Erlang/OTP ssh before 5.1.1
- jsch before 0.2.15
- FileZilla before 3.66.4
- SecureCRT before 9.4.3
- Tera Term before 5.1
- SFTPGo before 2.5.6
- Thorn Tech SFTP Gateway before 3.4.6
- ProFTPD before 1.3.8b and before 1.3.9rc2
- HPN-SSH through 18.2.0
- Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT
- Netgate pfSense Plus through 23.09.1 and pfSense CE through 2.7.2
Severity and business effect
- Security controls negotiated during SSH setup can be downgraded or disabled
- Remote administration trust can be undermined without obvious user awareness
- Potential operational risk for privileged access, automation jobs, and secure file transfer workflows
- AsyncSSH-specific issues can enable victim redirection into an attacker-controlled shell account under the right conditions
- No specific in-the-wild exploitation incidents were cited in the provided references
Scope and exploitation conditions
- Broad protocol and implementation exposure across Internet-facing and internal SSH deployments
- Exploitation requires active adversary-in-the-middle capability with ability to intercept and modify TCP/IP traffic
- Practical exploitability is strongest for ChaCha20-Poly1305 and some CBC with Encrypt-then-MAC configurations
- A patched client talking to a vulnerable server, or a patched server talking to a vulnerable client, can still result in a vulnerable connection


