CVE-2026-66033
libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation
Reported by vulncheck · Published July 24, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libssh2 | Alpine | 1.11.1-r4, 1.11.1-r3 |
| cargo-c | Amazon Linux | 0.10.21-1.amzn2023.0.1 |
| libssh2 | libssh2 | 1.11.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libssh2 | libssh2 | 0, a2ed82d40964bbc0d64cd717aa0a5a892117d2e6 |
| alpine | libssh2 | 0, 0 |
| libssh2 | libssh2 | *, 0 |
| amazon:2023 | cargo-c | 0 |
Timeline
- Jul 24, 2026 Coalition ESS Score
- Jul 24, 2026 CVE Published
- Jul 25, 2026 EPSS Score (30 in total, the first dated here)
- Jul 25, 2026 Security Advisory (5 in total, the first dated here)
- Jul 28, 2026 CVE Updated
- Aug 12, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-66033
vulnetix vdb fixes CVE-2026-66033
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-66033/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Pull Request issue-trackingpatch
- Patch Commit patch
- third-party-advisory