Skip to content

CVE-2026-66033 libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation

HighCVSS 8.7 EPSS 0.58%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
libssh2 <= 1.11.1 No fix listed
redhat/libssh2-main(Red Hat:hummingbird:1) < 1.11.1-10.2.hum1 1.11.1-10.2.hum1
redhat/libssh2(Red Hat:rhel_els:6) All versions No fix listed
debian/libssh2(Debian:13) < 1.11.1-1+deb13u2 1.11.1-1+deb13u2
debian/libssh2(Debian:13) = 1.11.1-1 No fix listed
debian/libssh2(Debian:13) = 1.11.1-1+deb13u1 No fix listed
debian/libssh2(Debian:14) < 1.11.1-5 1.11.1-5
debian/libssh2(Debian:14) = 1.11.1-1 No fix listed
debian/libssh2(Debian:14) = 1.11.1-2 No fix listed
debian/libssh2(Debian:14) = 1.11.1-3 No fix listed
debian/libssh2(Debian:14) = 1.11.1-4 No fix listed
alpine/libssh2(Alpine:v3.21) < 1.11.1-r3 1.11.1-r3
alpine/libssh2(Alpine:v3.22) < 1.11.1-r3 1.11.1-r3
alpine/libssh2(Alpine:v3.23) < 1.11.1-r4 1.11.1-r4
alpine/libssh2(Alpine:v3.24) < 1.11.1-r4 1.11.1-r4
ubuntu/libssh2(Ubuntu:24.04) < 1.11.0-4.1ubuntu0.24.04.4 1.11.0-4.1ubuntu0.24.04.4
ubuntu/libssh2(Ubuntu:26.04) < 1.11.1-1ubuntu0.26.04.4 1.11.1-1ubuntu0.26.04.4
azure linux libssh2(Azure Linux:3.0) < 1.11.1-5 1.11.1-5
azure linux rust(Azure Linux:3.0) All versions No fix listed
azure linux rust(Azure Linux:3.0) < 1.96.1-2 1.96.1-2

References