Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-48795

MEDIUM 5.9PoCEPSS 99%

Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin

Also known as GHSA-45x7-px36-x8w8, GO-2023-2402, PYSEC-2026-1758

Mitigation

  • Upgrade paramiko to 3.4.0 or later.
  • Upgrade golang.org/x/crypto to one of 0.17.0, 0.0.0-20231218163308-9d2ee975ef9f (or later in the same release line).
  • Upgrade russh to 0.40.2 or later.

Who should check

  • Projects that depend on PyPI package paramiko (>= 2.5.0, < 3.4.0)
  • Projects that depend on Go package golang.org/x/crypto (< 0.17.0)
  • Projects that depend on crates.io package russh (< 0.40.2)
  • Anyone running n/a (versions: see the vendor advisory)
  • Anyone running Siemens RUGGEDCOM APE1808 < *
  • Anyone running Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5, < *
  • Anyone running Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.5, < *
  • Anyone running Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem < V1.1

Vulnerability facts

Affected
paramiko >= 2.5.0, < 3.4.0; golang.org/x/crypto < 0.17.0; russh < 0.40.2
Fixed in
3.4.0, 0.17.0, 0.0.0-20231218163308-9d2ee975ef9f, 0.40.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
EPSS
35.76% chance of exploitation in 30 days (percentile 99, 2026-11-26)
CWE
CWE-354
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI paramiko>= 2.5.0, < 3.4.03.4.0osv
Go golang.org/x/crypto< 0.17.00.17.0, 0.0.0-20231218163308-9d2ee975ef9fosv
crates.io russh< 0.40.20.40.2osv
n/a——nvd
Siemens RUGGEDCOM APE1808< *—nvd
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.5, < *—nvd
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.5, < *—nvd
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP>= V3.1.5, < *—nvd
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP>= V3.1.5, < *—nvd
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem< V1.1—nvd
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP>= V3.1.5, < *—nvd

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-48795. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-48795.md
Affected: paramiko >= 2.5.0, < 3.4.0; golang.org/x/crypto < 0.17.0; russh < 0.40.2
Fixed in: 3.4.0, 0.17.0, 0.0.0-20231218163308-9d2ee975ef9f, 0.40.2

Steps:
1. Search this machine and project for paramiko (PyPI), golang.org/x/crypto (Go), russh (crates.io), n/a, Siemens RUGGEDCOM APE1808, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

Vendor advisories

Other

FAQ

Is CVE-2023-48795 being exploited?

There is no confirmed exploitation: CVE-2023-48795 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 35.76% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-48795?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2023-48795?

paramiko >= 2.5.0, < 3.4.0; golang.org/x/crypto < 0.17.0; russh < 0.40.2.

Is there a fix for CVE-2023-48795?

Yes. Fixed in 3.4.0, 0.17.0, 0.0.0-20231218163308-9d2ee975ef9f, 0.40.2. Upgrade paramiko to 3.4.0 or later. Upgrade golang.org/x/crypto to one of 0.17.0, 0.0.0-20231218163308-9d2ee975ef9f (or later in the same release line). Upgrade russh to 0.40.2 or later.

How do I check if I'm affected by CVE-2023-48795?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors