Skip to main content
Vulnerability Database/CVE-2026-106585

CVE-2026-106585: OpenSSH Packet Length Vulnerability

CVE-2026-106585 is a packet length validation flaw in OpenSSH before version 10.6 that fails to check maximum packet length during decompression of highly compressed data. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-106585 Overview

CVE-2026-106585 affects both sshd and ssh in OpenSSH releases prior to 10.6. The flaw stems from a missing check on the maximum packet length during decompression of highly compressed data. An attacker can send compressed payloads that expand beyond expected limits, causing resource strain on the receiving process. The weakness is tracked as [CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)]. OpenSSH 10.6 introduces the required length enforcement to prevent the condition.

Critical Impact

Remote, unauthenticated attackers can trigger resource consumption against OpenSSH clients and servers by sending highly compressed SSH packets that bypass packet length enforcement during decompression.

Affected Products

  • OpenSSH sshd server versions prior to 10.6
  • OpenSSH ssh client versions prior to 10.6
  • Linux and Unix distributions bundling vulnerable OpenSSH builds

Discovery Timeline

  • 2026-10-06 - CVE-2026-106585 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-106585

Vulnerability Analysis

OpenSSH optionally supports compression during the SSH transport layer. When compression is negotiated, inbound packets are decompressed before further processing. In releases before 10.6, the decompression routine in sshd and ssh does not verify that the resulting plaintext stays within the maximum allowed packet length. An attacker can craft small, highly compressed inputs that expand into much larger buffers during decompression. This is a classic data amplification pattern described by [CWE-409]. The result is excessive memory and CPU use on the receiving process, degrading service availability for other sessions.

Root Cause

The root cause is a missing bounds check between the decompression output buffer and the SSH protocol's maximum packet length. The code accepts whatever volume the decompressor emits rather than enforcing the ceiling defined by the SSH transport specification. Removing that invariant allows a compression ratio attack to proceed without early termination.

Attack Vector

The vector is network-based and requires no authentication or user interaction. An attacker targets sshd by initiating a connection, negotiating a compression algorithm supported by the server, and transmitting a crafted compressed payload. The symmetric flaw in ssh means a malicious server can target connecting clients. Impact is limited to partial integrity and availability consequences on the affected process.

No verified public proof-of-concept is referenced in the advisory. See the OpenSSH 10.6 release notes for upstream details.

Detection Methods for CVE-2026-106585

Indicators of Compromise

  • Repeated sshd process terminations or restarts without a corresponding successful authentication event in /var/log/auth.log or journalctl -u ssh.
  • Sudden spikes in resident memory for sshd child processes shortly after connection setup.
  • SSH sessions in which compression is negotiated and the connection is dropped before user authentication completes.

Detection Strategies

  • Inventory OpenSSH versions across the fleet using ssh -V and sshd -V and flag any build earlier than 10.6.
  • Baseline normal sshd memory and CPU usage, then alert on short-lived connections that produce outsized resource consumption.
  • Correlate authentication logs with process accounting to identify pre-authentication crashes tied to compressed traffic.

Monitoring Recommendations

  • Forward SSH daemon logs and host telemetry to a centralized analytics platform and alert on repeated pre-auth failures from the same source.
  • Track network flows to port 22 for unusual byte-ratio patterns indicating highly compressed payloads.
  • Enable crash reporting and core dump collection on hosts running sshd to retain forensic evidence of abusive sessions.

How to Mitigate CVE-2026-106585

Immediate Actions Required

  • Upgrade OpenSSH to version 10.6 or later on all servers and clients.
  • Apply distribution-provided backports when upstream 10.6 is not yet packaged for your platform.
  • Restrict SSH exposure to management networks or bastion hosts to reduce the attack surface during patch rollout.

Patch Information

The fix is included in OpenSSH 10.6, which adds the missing maximum packet length check during decompression. Review the OpenSSH 10.6 release notes and track vendor advisories for backported packages on long-term support distributions.

Workarounds

  • Disable SSH compression on servers by setting Compression no in /etc/ssh/sshd_config and reloading sshd.
  • Disable client-side compression by setting Compression no in /etc/ssh/ssh_config or in per-host ~/.ssh/config entries.
  • Rate-limit inbound SSH connections at the firewall or with fail2ban to blunt repeated amplification attempts.
bash
# Configuration example: disable SSH compression as a temporary workaround
# /etc/ssh/sshd_config
Compression no

# Apply the change
sudo sshd -t && sudo systemctl reload ssh

# Verify installed version is 10.6 or later
sshd -V 2>&1 | head -n1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.