Cloudanix VulnDB

CVE-2026-66033

High · 7.5

CVSS

7.5

EPSS

0.6%

Published

Jul 24, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A malicious SSH server can crash vulnerable software that connects to it, disrupting tools and services that rely on SSH connections.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

CVE-2026-66033 is a pre-authentication denial-of-service vulnerability in libssh2 through 1.11.1. During SSH handshake, a malicious SSH server can negotiate AES-GCM ciphers and trigger an integer underflow in ssh2_cipher_crypt() in src/openssl.c. The underflow affects a size calculation involving block size, additional authenticated data length, and authentication tag length, which can lead to an out-of-bounds read and a memcpy call with a near-SIZE_MAX length. The practical result is an immediate crash of the connecting client process before authentication completes. The known impact is availability loss, not credential theft, remote code execution, or data modification.

Why it matters to the business

Applications, automation jobs, file-transfer tools, deployment systems, monitoring systems, or embedded products that use libssh2 as an SSH client can be crashed by connecting to a malicious or compromised SSH server. This can interrupt scheduled transfers, backups, CI/CD tasks, administrative automation, or service integrations that rely on SSH. The risk is most relevant where software connects to untrusted SSH endpoints, user-supplied SSH destinations, third-party servers, or infrastructure that could be spoofed or compromised. The issue has a high availability CVSS impact but currently has low EPSS probability, is not listed in CISA KEV, is not known to be used in ransomware campaigns, and has no reported public exploit maturity in the supplied data; nevertheless, it is recent and should be remediated as part of normal security patching for exposed SSH-client workflows.

How an attack unfolds

An attacker positions or controls an SSH server that a vulnerable libssh2-based client will connect to. This could be a malicious server advertised to users, a compromised third-party SSH endpoint, a spoofed destination in a network where routing or DNS can be influenced, or any server URL accepted by an application. When the vulnerable client initiates the SSH handshake, the attacker-controlled server selects AES-GCM cipher negotiation. Before user authentication occurs, libssh2 processes the negotiated cipher parameters in ssh2_cipher_crypt(). A malformed size calculation underflows, producing an extremely large length value that is then used in memory operations. The client process attempts an invalid read/copy and crashes. Because exploitation occurs pre-authentication, the attacker does not need valid credentials on the SSH server; they only need the client to initiate a connection to the malicious endpoint.

How to fix it

Upgrade libssh2 packages to a fixed build. For the supplied Red Hat package stream, update libssh2-main to 1.11.1-10.2.hum1 or later as delivered by RHSA-2026:46927. For source builds or vendored copies, ensure the fix from commit a2ed82d or an equivalent upstream/vendor patch is present. Rebuild and redeploy applications that statically link or vendor libssh2, because updating the system package alone may not protect bundled copies. As a temporary mitigation where immediate patching is not possible, restrict libssh2-based clients from connecting to untrusted SSH servers, pin known-good SSH host keys, limit user-supplied SSH destinations, and disable AES-GCM SSH ciphers if the application or configuration allows it. Restart affected services and long-running processes after updating the library so they load the fixed version.

How to confirm the fix worked

Confirm installed package versions using the operating system package manager and verify that libssh2-main is at 1.11.1-10.2.hum1 or later for the affected Red Hat package stream. Inventory applications that dynamically link against libssh2, for example by inspecting package dependencies or library linkage, and confirm they load the patched library path at runtime. For statically linked applications, confirm the application vendor has rebuilt with the patched libssh2 code or verify the embedded library source includes the a2ed82d fix. Review SSH client configuration to confirm AES-GCM ciphers are disabled only if using that as a temporary mitigation. Validate operationally by performing normal SSH workflows against trusted servers and confirming no crashes occur. Avoid using destructive proof-of-concept testing in production because successful exploitation intentionally crashes the client process.

Typical attack path

  1. Identify software, scripts, or services that use libssh2 as an SSH client and can be induced to connect to an attacker-controlled SSH server.
  2. Set up or compromise an SSH server reachable by the target client.
  3. Ensure the SSH server negotiates AES-GCM ciphers such as aes128-gcm@openssh.com or aes256-gcm@openssh.com during handshake.
  4. Wait for or lure the vulnerable client process to initiate an SSH connection to the malicious server.
  5. Trigger the libssh2 integer underflow during pre-authentication cipher handling.
  6. Cause the client application, job, daemon, or service process to crash, producing a denial-of-service condition.

How to detect it

This vulnerability is expected to leave evidence of client-side crashes rather than traditional compromise artifacts. Review endpoint crash logs, system journals, application logs, core-dump records, EDR telemetry, and service manager logs for libssh2-using processes that terminated with segmentation faults, aborts, or access violations during SSH connection attempts. Correlate crash timestamps with outbound network connections to SSH servers, especially new, external, user-supplied, or unusual destinations on TCP/22 or alternate SSH ports. Look for stack traces or symbols referencing ssh2_cipher_crypt(), src/openssl.c, libssh2, memcpy, and AES-GCM cipher negotiation. Network telemetry may show SSH handshakes where aes128-gcm@openssh.com or aes256-gcm@openssh.com was selected shortly before the client process terminated. If crash dumps are available, inspect them for libssh2 frames and oversized memory-copy lengths. Since exploitation occurs before authentication and is intended to crash the client, absence of login failures or successful authentications on the server side does not rule out exploitation.

  • ssh2_cipher_crypt
  • src/openssl.c
  • libssh2.so
  • libssh2.dll
  • aes128-gcm@openssh.com
  • aes256-gcm@openssh.com
  • SIGSEGV
  • Segmentation fault
  • core dumped
  • memcpy
  • RHSA-2026:46927

What your security team should do

  • Prioritize patching systems and products that use libssh2 to connect to external, third-party, user-provided, or otherwise untrusted SSH servers.
  • Update Red Hat libssh2-main packages to 1.11.1-10.2.hum1 or later from RHSA-2026:46927, and apply equivalent vendor fixes elsewhere.
  • Identify statically linked or vendored libssh2 copies in commercial applications, appliances, containers, CI/CD images, backup tools, file-transfer utilities, and custom software.
  • If patching must be delayed, restrict outbound SSH destinations to trusted hosts and disable AES-GCM ciphers for libssh2-based clients where feasible.
  • Monitor for unexplained crashes of SSH-client applications, especially immediately after outbound connections to new or unusual SSH servers.
  • Correlate crash telemetry with outbound connections to TCP/22 or other SSH service ports to identify potentially malicious servers.
  • Because the supplied EPSS is low, the issue is not in KEV, and no active exploitation is reported, handle as important availability remediation rather than emergency incident response unless crashes or suspicious SSH destinations are observed.

The record

libssh2 through 1.11.1, fixed in commit a2ed82d, contains a pre-authentication integer underflow vulnerability in the ssh2_cipher_crypt() function in src/openssl.c that allows a malicious SSH server to crash any connecting client by negotiating AES-GCM ciphers during handshake. Attackers can exploit the underflow in the expression computing blocksize minus aadlen minus authentication tag length to trigger an out-of-bounds read and a memcpy call with a near-SIZE_MAX length argument, causing immediate process crash before any authentication occurs.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities