CVE-2023-48795, the Terrapin attack, is a flaw in the SSH transport protocol that lets a man-in-the-middle silently delete packets at the start of the encrypted channel when ChaCha20-Poly1305 or CBC with Encrypt-then-MAC is used. NVD scores it 5.9. OpenSSH 9.6, Dropbear 2024.84 and libssh 0.10.6 add the strict KEX fix.
Vulnerability summary
CVSS base score
5.9
Medium severity
EPSS score (FIRST)
93.5%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2023-48795 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| OpenSSH | cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* | before 9.6 (strict KEX countermeasure added in 9.6, 2023-12-18) |
| Dropbear SSH | cpe:2.3:a:dropbear_ssh_project:dropbear_ssh:*:*:*:*:*:*:*:* | 2020.79 (ChaCha20-Poly1305 support) to before 2024.84, which adds strict KEX; NVD's range stops before 2022.83, but 2022.83 is also affected (per Dropbear CHANGES and Debian) |
| libssh | cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* | before 0.10.6 and 0.9.8 (per libssh advisory) |
| Siemens SCALANCE W700 IEEE 802.11ax (WAB762-1, WAM763-1, WAM766-1, WUB762-1, WUM763-1, WUM766-1 families) | — | before V3.0.0 (fixed in V3.0.0, per SSA-769027) |
| ABB M2M Gateway ARM600 | — | firmware 4.1.2 to 5.0.3; M2M Gateway SW 5.0.1 to 5.0.3 (per ABB advisory republished by CISA as ICSA-25-105-08) |
What does this mean for affected devices?
CVE-2023-48795 is an integrity check bypass (CWE-354) in the SSH Binary Packet Protocol. The Terrapin researchers say the attack needs "MitM capabilities at the network layer" and a connection secured by "either ChaCha20-Poly1305 or CBC with Encrypt-then-MAC", and that their scan found at least 77% of SSH servers on the internet supporting a mode that can be exploited. The attacker sends extra messages before encryption starts and deletes the same number right after it, so sequence numbers still line up. NVD's Primary score is 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N (NVD).
The practical impact depends on the implementation. The OpenSSH 9.6 release notes call the impact "very limited": the most serious effect is deleting the SSH2_MSG_EXT_INFO message, which disables some keystroke timing obfuscation added in 9.5. OpenSSH 9.6 adds a "strict KEX" extension that only takes effect when both client and server support it. Dropbear added strict KEX in 2024.84 on 4 April 2024; its CHANGES file says "chacha20-poly1305 is the only affected cipher" for Dropbear and that the flaw "does not seem to reduce Dropbear's security". The libssh advisory covers libssh, fixed in 0.10.6 and 0.9.8. See our OpenSSH, Dropbear and libssh and libssh2 firmware guides for what each library compiles in.
Industrial devices carry it in their management SSH servers. Siemens ProductCERT SSA-769027 lists 19 SCALANCE W700 IEEE 802.11ax access points and clients (WAB762-1, WAM763-1, WAM766-1, WUB762-1, WUM763-1 and WUM766-1 variants) and fixes them in V3.0.0. ABB's advisory, republished by CISA as ICSA-25-105-08, lists the ARM600 M2M Gateway on firmware 4.1.2 to 5.0.3 and recommends keeping it off the internet behind a private cellular APN and VPN.
Version matching needs care. NVD's Dropbear configuration ends before 2022.83, but the Debian tracker fixes bookworm's 2022.83 with a backport (2022.83-1+deb12u1) and marks buster not affected because ChaCha20-Poly1305 arrived in 2020.79. A device on a fixed server still negotiates the vulnerable mode with an old field-service client, since both ends need strict KEX. The Terrapin site's workaround is to disable [email protected] and the [email protected] MACs in favour of AES-GCM.
This CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13, CISA KEV). FIRST EPSS gives it 0.935, the 99.8th percentile, in its 2026-11-15 dataset (FIRST EPSS), a high score for a flaw that needs an on-path attacker. Our weak cryptography fix guide covers trimming algorithm lists in device builds.
Evidence
- Requires network-layer MitM and ChaCha20-Poly1305 or CBC with Encrypt-then-MAC; at least 77% of internet SSH servers supported an exploitable mode; workaround disable chacha20-poly1305 and -etm MACs. — Terrapin attack site
- NVD Primary CVSS 3.1 5.9, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N; CWE-354; Dropbear CPE versionEndExcluding 2022.83; OpenSSH before 9.6; libssh before 0.10.6. — NVD
- OpenSSH 9.6 (2023-12-18) strict KEX; impact very limited, most serious is deleting SSH2_MSG_EXT_INFO. — OpenSSH release notes
- Dropbear 2024.84 (4 April 2024) adds Strict KEX; chacha20-poly1305 the only affected cipher; flaw does not seem to reduce Dropbear's security. — Dropbear CHANGES
- libssh fixed in 0.10.6 and 0.9.8. — libssh security advisory
- 19 SCALANCE W700 IEEE 802.11ax products affected, fixed in V3.0.0; CVSS 5.9. — Siemens SSA-769027
- ABB M2M Gateway ARM600 firmware 4.1.2 to 5.0.3 and M2M Gateway SW 5.0.1 to 5.0.3 affected; mitigations private APN, no internet exposure, VPN. — CISA ICSA-25-105-08 (ABB) CSAF
- Debian dropbear bookworm fixed 2022.83-1+deb12u1, bullseye 2020.81-3+deb11u1; buster not affected (ChaCha20-Poly1305 introduced in 2020.79). — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.93547 (99.8th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories
Sources
- NVD
- Terrapin attack (Bäumer, Brinkmann, Schwenk)
- OpenSSH release notes (9.6/9.6p1)
- Dropbear CHANGES (2024.84)
- libssh security advisory CVE-2023-48795
- Siemens SSA-769027 (SCALANCE W700 IEEE 802.11ax)
- CISA ICSA-25-105-08: ABB M2M Gateway (CSAF)
- Debian Security Tracker
- CISA KEV
- CISA KEV data (catalog JSON)
- FIRST EPSS
Frequently asked questions
Does Terrapin let an attacker read or take over an SSH session?
No. It lets an on-path attacker delete messages at the start of the encrypted channel. OpenSSH says the most serious identified impact is deleting the SSH2_MSG_EXT_INFO message, which disables some keystroke timing obfuscation, with no other discernible impact on session secrecy or integrity (per the OpenSSH 9.6 release notes).
Which Dropbear versions are affected by CVE-2023-48795?
Builds from 2020.79, when ChaCha20-Poly1305 arrived, up to before 2024.84, which adds strict KEX. NVD's range stops before 2022.83, but Debian backported the fix into its 2022.83 package, so 2022.83 is affected too (per Dropbear CHANGES and the Debian tracker).
Which industrial devices are affected by Terrapin?
Siemens SSA-769027 lists 19 SCALANCE W700 IEEE 802.11ax products, fixed in V3.0.0. ABB lists the ARM600 M2M Gateway on firmware 4.1.2 to 5.0.3 (per Siemens ProductCERT and ICSA-25-105-08).
Is updating only the device's SSH server enough?
Not fully. Strict KEX only takes effect when both client and server support it, so a fixed device that talks to an old client can still negotiate a vulnerable mode. Disabling chacha20-poly1305 and the -etm MACs on the device closes that gap (per OpenSSH and the Terrapin site).
Is CVE-2023-48795 in the CISA KEV catalog?
No, it is not listed as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.935, the 99.8th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?