Vulnerability · Published Jul 24, 2026 · Assigned by VulnCheck
CVE-2026-66033libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation
High 7.5
In plain English
A high-severity out-of-bounds read in libssh2 from libssh2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | libssh2 | 1.11.1-r3 | ALPINE-CVE-2026-66033 |
| Alpine:v3.22 | libssh2 | 1.11.1-r3 | ALPINE-CVE-2026-66033 |
| Alpine:v3.23 | libssh2 | 1.11.1-r4 | ALPINE-CVE-2026-66033 |
| Alpine:v3.24 | libssh2 | 1.11.1-r4 | ALPINE-CVE-2026-66033 |
| Debian:13 | libssh2 | 1.11.1-1+deb13u2 | DEBIAN-CVE-2026-66033 |
| Debian:14 | libssh2 | 1.11.1-5 | DEBIAN-CVE-2026-66033 |
| Ubuntu:24.04:LTS | libssh2 | 1.11.0-4.1ubuntu0.24.04.4 | USN-8722-1 |
| Ubuntu:24.04:LTS | libssh2 | 1.11.0-4.1ubuntu0.24.04.4 | UBUNTU-CVE-2026-66033 |
| Ubuntu:26.04:LTS | libssh2 | 1.11.1-1ubuntu0.26.04.4 | USN-8722-1 |
| Ubuntu:26.04:LTS | libssh2 | 1.11.1-1ubuntu0.26.04.4 | UBUNTU-CVE-2026-66033 |
Affected products (as reported)
Weakness: CWE-191, CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- Pull Request issue-tracking, patch
- Patch Commit patch
- https://www.vulncheck.com/advisories/libssh2-integer-underflow-dos-via-aes-gcm-cipher-negotiation third-party-advisory