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.
Published: 2026-07-24
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*

Tue, 28 Jul 2026 00:15:00 +0000

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


Mon, 27 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 24 Jul 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Libssh2
Libssh2 libssh2
Vendors & Products Libssh2
Libssh2 libssh2

Fri, 24 Jul 2026 18:30:00 +0000

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'}


Subscriptions

Libssh2 Libssh2
Redhat Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:06:25.504Z

Reserved: 2026-07-23T20:45:17.816Z

Link: CVE-2026-66033

cve-icon Vulnrichment

Updated: 2026-07-27T16:15:26.392Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-24T17:17:35.263

Modified: 2026-07-30T15:44:47.257

Link: CVE-2026-66033

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-24T16:35:28Z

Links: CVE-2026-66033 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T20:00:12Z

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-191

    Integer Underflow (Wrap or Wraparound)