TL;DR
Four new libssh2 vulnerabilities put SSH and SFTP clients at risk. Each one lets a malicious SSH server corrupt memory on the machine that connects to it. VulnCheck disclosed the flaws on July 24, 2026, and upstream fixes are ready.
- Product: libssh2
- Vulnerabilities: 4 flaws (CVE-2026-66032, CVE-2026-66033, CVE-2026-66034, CVE-2026-66035)
- Highest severity: 8.8 (High · CVSSv3)
- Worst impact: Double-Free Heap Corruption via sftp_open()
- Status: No confirmed exploitation yet; patches available
- Action: Update to 5e4776146552d898b9c0e1b313cd093fa8dc92d0, a2ed82d40964bbc0d64cd717aa0a5a892117d2e6, a13bb6c773f0d55ad1628cede57e99803cd898d9, 42e33d81577ed4b95d4b4f6f845e5ee8efe5eeb4 now
| CVE | CVSS (CVSSv3) | Type | Fixed in | Status |
|---|---|---|---|---|
| CVE-2026-66032 | 8.8 | Double-Free Heap Corruption via sftp_open() | 5e4776146552d898b9c0e1b313cd093fa8dc92d0 | Not exploited |
| CVE-2026-66033 | 7.5 | Integer Underflow DoS via AES-GCM Cipher Negotiation | a2ed82d40964bbc0d64cd717aa0a5a892117d2e6 | Not exploited |
| CVE-2026-66034 | 7.5 | Heap Out-of-Bounds Read via publickey subsystem | a13bb6c773f0d55ad1628cede57e99803cd898d9 | Not exploited |
| CVE-2026-66035 | 7.5 | Heap Buffer Overflow via ETM Cipher Negotiation | 42e33d81577ed4b95d4b4f6f845e5ee8efe5eeb4 | Not exploited |
Why it matters
libssh2 sits inside countless tools that speak SSH. It ships with package managers, Git clients, and many programming libraries. Therefore, the risk flips the usual model. Here the server attacks the client, not the other way around. A user who connects to a rogue or hijacked server can suffer heap corruption. Two of the flaws even strike before authentication finishes.
How the attacks work
Pre-authentication memory corruption
CVE-2026-66035 triggers a heap overflow during Encrypt-then-MAC negotiation. A short packet makes the client copy too many bytes. The upstream commit corrects the length check. CVE-2026-66033 underflows a size calculation during AES-GCM setup, which crashes the client. Its fix restores proper bounds.
Post-authentication and key parsing
CVE-2026-66032 frees the same SFTP buffer twice, and the patch removes the double free. CVE-2026-66034 reads past a public-key buffer and frees an uninitialized pointer. That leak exposes heap addresses and undermines ASLR. The commit adds the missing bounds check.
Affected versions
All four bugs affect libssh2 through version 1.11.1. The SFTP double-free and the AES-GCM underflow carry the highest CVSS score, 8.7. The other two rate 7.7. VulnCheck assigned all four identifiers.
Patch and mitigation
Update to the patched release beyond 1.11.1, or apply the four upstream commits directly. Until you patch, connect only to trusted SSH servers. So far, no public exploit or in-the-wild abuse of these libssh2 vulnerabilities has been confirmed.
Support Our Threat Intelligence
If you find our CVE report and cybersecurity news helpful, consider supporting our work.