CVE-2026-66033CWE-125CWE-191

libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation

High · published July 24, 2026

CVSS v4.0
8.7
EPSS
1%
Percentile
47.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.7 · HIGH
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
EPSS
0.00583 · 47.1th percentile
Weaknesses
CWE-125 · Out-of-bounds Read; CWE-191 · Integer Underflow (Wrap or Wraparound)
Published
2026-07-24T16:35Z
EPSS history
Timeline
  • 24 JUL 16:35Z
    libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation
    cvelistv5