# Terrapin

> Prefix truncation attack on SSH that silently drops early messages and downgrades connection security.

## At a glance

Terrapin is a vulnerability in the area of TLS & crypto, disclosed on 18 December 2023 and tracked as CVE-2023-48795. It was discovered by Fabian Bäumer (Ruhr-Universität Bochum), Marcus Brinkmann (Ruhr-Universität Bochum) and Jörg Schwenk (Ruhr-Universität Bochum). The logo was designed by tnhs_project. The logo is in the public domain (CC0 1.0) and may be used without restriction.

## Background

Terrapin is a prefix truncation attack on SSH: a network attacker shifts sequence numbers during the handshake and thereby silently removes messages at the start of the secure channel. This weakens extension negotiation and thus client authentication. According to the scan, at least 77 percent of SSH servers support an exploitable mode; “strict key exchange” on both sides mitigates it.

## Facts

- Disclosed: 18 December 2023
- CVE: [CVE-2023-48795](https://nvd.nist.gov/vuln/detail/CVE-2023-48795)
- Area: [TLS & crypto](https://vulnallery.de/en/category/tls-and-crypto/)
- Discovered by: Fabian Bäumer (Ruhr-Universität Bochum), Marcus Brinkmann (Ruhr-Universität Bochum) and Jörg Schwenk (Ruhr-Universität Bochum)
- Affected: SSH implementations offering ChaCha20-Poly1305 or CBC with encrypt-then-MAC, including OpenSSH, AsyncSSH and Apache MINA SSHD
- Severity: CVSS 3.1 5.9 (medium), CVE-2023-48795, NVD
- Official website: https://terrapin-attack.com/
- Wikidata: https://www.wikidata.org/wiki/Q123938059
- Logo: https://vulnallery.de/assets/img/terrapin.webp
- Design: tnhs_project
- Logo licence: CC0 1.0 – public domain dedication
- Source of the image rights: https://commons.wikimedia.org/wiki/File:Terrapin-square.png
- Sources: https://terrapin-attack.com/, https://nvd.nist.gov/vuln/detail/CVE-2023-48795

## Questions and answers about Terrapin

### What is Terrapin?

Prefix truncation attack on SSH that silently drops early messages and downgrades connection security. Terrapin is a prefix truncation attack on SSH: a network attacker shifts sequence numbers during the handshake and thereby silently removes messages at the start of the secure channel. This weakens extension negotiation and thus client authentication. According to the scan, at least 77 percent of SSH servers support an exploitable mode; “strict key exchange” on both sides mitigates it. Terrapin was disclosed on 18 December 2023.

### Who discovered Terrapin?

Terrapin was discovered by Fabian Bäumer (Ruhr-Universität Bochum), Marcus Brinkmann (Ruhr-Universität Bochum) and Jörg Schwenk (Ruhr-Universität Bochum).

### What is affected by Terrapin?

Affected: SSH implementations offering ChaCha20-Poly1305 or CBC with encrypt-then-MAC, including OpenSSH, AsyncSSH and Apache MINA SSHD.

### How severe is Terrapin?

NVD rates CVE-2023-48795 with a CVSS 3.1 base score of 5.9 out of 10 (medium).

### Who designed the Terrapin logo?

The logo was designed by tnhs_project.

### May I use the Terrapin logo?

The logo is in the public domain (CC0 1.0) and may be used without restriction. No guarantee; the source commons.wikimedia.org is authoritative.

### Which CVE identifier does Terrapin have?

Terrapin is tracked as CVE-2023-48795.

---

Source: Vulnallery – https://vulnallery.de/en/terrapin/ (as of 2026-11-20). This page in German: https://vulnallery.de/de/terrapin/
