CVE-2026-66033

libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation

Published Jul 24, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

libssh2, used in many SSH client applications, contains a pre‑authentication integer underflow in the ssh2_cipher_crypt() routine. During the handshake, if an attacker forces the server to negotiate an AES‑GCM cipher, the library computes a block size value that underflows, producing an out‑of‑bounds read and a memcpy with a value close to SIZE_MAX. This results in an immediate crash of the client process before authentication succeeds. The flaw is a classic integer underflow (CWE‑125) and a signed integer wrap‑around (CWE‑191), but it does not provide access to arbitrary code execution; its effect is a denial‑of‑service condition on the client side.

Affected Systems

All installations of libssh2 1.11.1 and earlier that rely on the default cipher negotiation logic are vulnerable. The vulnerability is present in the libssh2 libssh2 library used by applications that perform SSH connections, regardless of the operating system.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity impact. The EPSS score is below 1 %, meaning the likelihood of exploitation has been assessed as very low, and the vulnerability is not listed in the CISA KEV catalog. Attackers only need to control an SSH server that forces AES‑GCM negotiation; no authentication is required. Once the vulnerable client connects, it will crash immediately, making this vulnerability useful for DoS attacks against services that depend on libssh2.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libssh2 to a version that includes the a2ed82d patch (e.g., 1.11.2 or later).
  • Configure the client to exclude AES‑GCM ciphers from the negotiation list, using the libssh2 cipher preference API.
  • Enable log monitoring and alerts for unexpected libssh2 process crashes that occur after establishing SSH connections.

Generated by OpenCVE AI on August 3, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Libssh2
Libssh2 libssh2
Vendors & Products Libssh2
Libssh2 libssh2
Type Values Removed Values Added
Description 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.
Title libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation
Weaknesses CWE-125
CWE-191
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:06 AM
Reserved
Jul 23, 2026, 8:45 PM
Status
Analyzed
Published
Jul 24, 2026, 5:17 PM
Modified
Nov 8, 2026, 4:10 PM
Severity
Moderate
Public date
Jul 24, 2026, 4:35 PM