Skip to main content
Mallory
← Back to News
proof-of-concept-releasewidely-deployed-product-advisoryendpoint-software-vulnerabilitydetection-content-update

Terrapin Attack Downgrades SSH Handshake Protections in Multiple Implementations

Patch & Detection Intelligence · 4 sources · Updated 5mo ago · First seen May 25, 2026

Terrapin Attack Downgrades SSH Handshake Protections in Multiple Implementations

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
Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Oct 17, 2023 – Dec 19, 2023
  1. Dec 19, 20233y ago

    CVE-2023-48795 is assigned to the SSH protocol flaw

    The Terrapin attack was tracked as CVE-2023-48795, covering the SSH transport protocol weakness that can allow integrity-check bypass and downgrade of negotiated security features in affected implementations.

  2. Dec 19, 20233y ago

    Terrapin paper, PoC code, and scanner are published

    Alongside disclosure, the researchers published the Terrapin technical paper as well as proof-of-concept code and a scanner, providing detailed information on the attack and affected configurations.

  3. Dec 19, 20233y ago

    Researchers publicly disclose the Terrapin SSH attack

    Researchers publicly revealed Terrapin, a man-in-the-middle prefix truncation attack against SSH that can weaken or remove negotiated security protections during the handshake under specific cipher configurations.

  4. Dec 19, 20233y ago

    Vendors release coordinated fixes for affected SSH implementations

    Affected projects issued updates to address Terrapin and related implementation flaws, including OpenSSH 9.6, PuTTY 0.8, libssh 0.10.6 and 0.9.8, and AsyncSSH 2.14.1 and 2.14.2.

  5. Oct 17, 20233y ago

    Ruhr University Bochum privately discloses Terrapin to vendors

    Researchers from Ruhr University Bochum privately reported the Terrapin SSH weakness to affected vendors in October 2023, beginning coordinated remediation before public release.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Affected products

2 linked
OpensshSecure Shell
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.