CVE Database›Document archive›CVE-2026-66033

CVE-2026-66033

libssh2: libssh2: Denial of Service via integer underflow in AES-GCM cipher negotiation

Loading…

Severity

Moderate

Red Hat Product Security

6.5

CVSS 3.1

Review impact separately from score.

Published · July 25, 2026

Updated · August 20, 2026

Description

A flaw was found in libssh2. A pre-authentication integer underflow vulnerability exists in the ssh2_cipher_crypt() function when negotiating AES-GCM ciphers during the handshake. A malicious SSH server can exploit this to trigger an out-of-bounds read and a memory copy operation with an extremely large length argument, leading to an immediate client process crash. This vulnerability results in a Denial of Service (DoS) for any connecting client.

Statement

This Moderate impact flaw in libssh2 allows a malicious SSH server to trigger a client-side denial of service. The vulnerability, an integer underflow during AES-GCM cipher negotiation, can cause a connecting client to crash before authentication. Exploitation requires the client to connect to a specially crafted, untrusted SSH server.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate the vulnerability, developers or administrators must configure the specific applications utilizing libssh2 to explicitly exclude AES-GCM from their preferred cipher lists.

CVSS / CWE

CVSS 3.1 · 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CWE-125 · Out-of-bounds Read