CVE-2023-48795
Terrapin
A public proof of concept exists; no exploitation attested.
- Published2023-12-18
- Fixed in26.2.1 · 25.3.2.8 · 24.3.4.15 · 23.3.4.20 · 22.3.4.27
- WeaknessCWE-354
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack. This occurs because the SSH Binary Packet Protocol (BPP), implemented by these extensions, mishandles the handshake phase and mishandles use of sequence numbers. For example, there is an effective attack against SSH's use of ChaCha20-Poly1305 (and CBC with Encrypt-then-MAC). The bypass occurs in chacha20-poly1305@openssh.com and (if CBC is used) the -etm@openssh.com MAC algorithms. This also affects Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT, Dropbear through 2022.83, Ssh before 5.1.1 in Erlang/OTP, PuTTY before 0.80, AsyncSSH before 2.14.2, golang.org/x/crypto before 0.17.0, libssh before 0.10.6, libssh2 through 1.11.0, Thorn Tech SFTP Gateway before 3.4.6, Tera Term before 5.1, Paramiko before 3.4.0, jsch before 0.2.15, SFTPGo before 2.5.6, Netgate pfSense Plus through 23.09.1, Netgate pfSense CE through 2.7.2, HPN-SSH through 18.2.0, ProFTPD before 1.3.8b (and before 1.3.9rc2), ORYX CycloneSSH before 2.3.4, NetSarang XShell 7 before Build 0144, CrushFTP before 10.6.0, ConnectBot SSH library before 2.2.22, Apache MINA sshd through 2.11.0, sshj through 0.37.0, TinySSH through 20230101, trilead-ssh2 6401, LANCOM LCOS and LANconfig, FileZilla before 3.66.4, Nova before 11.8, PKIX-SSH before 14.4, SecureCRT before 9.4.3, Transmit5 before 5.10.4, Win32-OpenSSH before 9.5.0.0p1-Beta, WinSCP before 6.2.2, Bitvise SSH Server before 9.32, Bitvise SSH Client before 9.33, KiTTY through 0.76.1.13, the net-ssh gem 7.2.0 for Ruby, the mscdex ssh2 module before 1.15.0 for Node.js, the thrussh library before 0.35.1 for Rust, and the Russh crate before 0.40.2 for Rust.
Timeline
dates in UTC- 2023-12-1816:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-10-23 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2023-48795?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2023-48795?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 26.x | ≥ 26.0, < 26.2.1 | 26.2.1 | NVD |
| 25.x | ≥ 25.0, < 25.3.2.8 | 25.3.2.8 | NVD |
| 24.x | ≥ 24.0, < 24.3.4.15 | 24.3.4.15 | NVD |
| 23.x | ≥ 23.0, < 23.3.4.20 | 23.3.4.20 | NVD |
| 22.3 | < 22.3.4.27 | 22.3.4.27 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.x | ≥ 5.0, < 5.1.1 | 5.1.1 | NVD |
| 4.x | ≥ 4.14, < 4.15.3.1 | 4.15.3.1 | NVD |
| 4.x | ≥ 4.12, < 4.13.2.4 | 4.13.2.4 | NVD |
| 4.x | ≥ 4.10, < 4.11.1.7 | 4.11.1.7 | NVD |
| 4.9 | < 4.9.1.5 | 4.9.1.5 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.17 | < 0.17.0 | 0.17.0 | NVD · OSV |
| 0.x | ≥ 0.1.0, < 0.17.0 | 0.17.0 | OSV |
| 0.0 | < 0.0.0-20231218163308-9d2ee975ef9f | 0.0.0-20231218163308-9d2ee975ef9f | OSV |
65 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- buildahAlmaLinux:9all versions · fixed in 1:1.31.4-1.el9_3and 1 other package
- libsshAlmaLinux:8all versions · fixed in 0.9.6-13.el8_9and 2 other packages
- opensshAlmaLinux:9all versions · fixed in 8.7p1-34.el9_3.3and 4 other packages
- opensshAlmaLinux:8all versions · fixed in 8.0p1-19.el8_9.2and 6 other packages
- pam_ssh_agent_authAlmaLinux:9all versions · fixed in 0.10.4-5.34.el9_3.3
- pam_ssh_agent_authAlmaLinux:8all versions · fixed in 0.10.3-7.19.el8_9.2
Vendor advisories
ssh: Prefix truncation attack on Binary Packet Protocol (BPP)
rhmtc/openshift-migration-velero-rhel8 as a component of Migration Toolkit for Containers · odo.src as a component of OpenShift Developer Tools and Services · openshift-pipelines-client.src as a component of OpenShift Pipelines · +149 more
Red Hat Security Advisory: Red Hat Ceph Storage
Red Hat Security Advisory: Red Hat Ceph Storage 8.1 security and bug fix updates
Siemens SIMATIC S7-1500 CPU family
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more
SSA-082556: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.5 · +2 more
Red Hat Security Advisory: Red Hat Ceph Storage 7.1 security, bug fix, and enhancement updates
71 more advisories
Fix
- Update Erlang erlang\/otp to 26.2.1 · 25.3.2.8 · 24.3.4.15 · 23.3.4.20 · 22.3.4.27
- Vendor fix Red Hat Product Security RHSA-2026:79243 · 4 productsThe container images provided by this update can be downloaded from the Red Hat container registry at registry.redhat.io using the "podman pull" command.
- Vendor fix Red Hat Product Security RHSA-2026:79101 · 221 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 For supported configurations, refer to: https://access.redhat.com/articles/1548993
- Vendor fix CISA ICSA-25-044-09 · 19 productsUpdate to V3.0.0 or later version
- Vendor fix Siemens ProductCERT SSA-769027 · 19 productsUpdate to V3.0.0 or later version
- Vendor fix Siemens ProductCERT SSA-915275 · 1 productUpdate to V1.0 SP2 Update 3 or later version
- Vendor fix CISA ICSA-24-319-08 · 1 productUpdate to V1.0 SP2 Update 3 or later version
Advisories and patches
- www.openwall.comMitigation
- crates.ioRelease Notes
- filezilla-project.orgRelease Notes
- git.libssh.orgPatch
- github.comRelease Notes
- github.comRelease Notes
Detection
read 2026-10-23 19:23 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 4 repositories, unverifiedTrixSec/CVE-2023-48795hav0cx0/CVE-2023-48795oseasfr/Scanner_CVE_OpenSSHMr-Whiskerss/SSH-Terrapin-Prefix-Truncation-Weakness-CVE-2023-48795-Checker PoC-in-GitHub
Sources
- CISA-ADPSSVC decisionpoc2023-12-22
- OpenCVESSVC decisionpoc—
- CISA-ADPCVSS 3.15.92025-08-27
- NVDCVSS 3.15.9read 2026-10-23
- CISA-ADPweakness (CWE)CWE-3542025-08-27
- NVDweakness (CWE)CWE-354read 2026-10-23
- FIRST EPSSEPSS score93.5 %read 2026-10-23
- PoC-in-GitHubproof of concept4read 2026-10-23
- OSVaffected packages—
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- Published
- 2023-12-18
- Last Modified
- 2026-10-15
- NVD status
- Modified
Frequently asked questions
What is CVE-2023-48795?
Is CVE-2023-48795 actively exploited?
What is the CVSS score for CVE-2023-48795?
Running golang.org/x/crypto? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.