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

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-07-24T16:35:28.607Z
- Modified: 2026-11-08T16:10:00.183Z
- Weaknesses: CWE-125, CWE-191
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- libssh2 libssh2: up to 1.11.1 (not affected: a2ed82d40964bbc0d64cd717aa0a5a892117d2e6)

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/libssh2/libssh2/pull/2401> (issue-tracking, patch)
- <https://github.com/libssh2/libssh2/commit/a2ed82d40964bbc0d64cd717aa0a5a892117d2e6> (patch)
- <https://www.vulncheck.com/advisories/libssh2-integer-underflow-dos-via-aes-gcm-cipher-negotiation> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-66033](https://www.cve.org/CVERecord?id=CVE-2026-66033), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2026-66033](https://nvd.nist.gov/vuln/detail/CVE-2026-66033), Public domain, modified 2026-11-08

---

Page: https://cve.day/CVE-2026-66033 · Whole record: https://cve.day/CVE-2026-66033.json · Rebuilt by cve.day 2026-11-25T22:59:30.025Z
