CVE-2026-55200 – Critical Out‑of‑Bounds Write in libssh2
Key takeaways
- Critical out‑of‑bounds heap write in libssh2 (≤ 1.11.1) enables remote code execution on the SSH client.
- No credentials or user interaction required; the attacker controls the SSH server.
- Public proof‑of‑concepts are available; active exploitation has been reported on several occasions.
- Immediate patch to a build containing commit 7acf3df (PR #2052) or upgrade to a fixed release.
- Inventory all software that statically links libssh2 (curl, Git, PHP, network appliances) and apply mitigations.
Overview#
- Identifier: CVE-2026-55200
- Vendor / Product: libssh2 library (SSH client implementation)
- Published: 2026‑06‑17 (NVD)
- Severity: Critical (CVSS 4.0 9.2, NIST CVSS 3.1 8.3)
- CWE: CWE‑680 (Integer overflow / out‑of‑bounds write)
- CISA KEV: Not listed
The vulnerability affects all releases of libssh2 up to and including 1.11.1. It was disclosed by the NHS Digital Cyber Security team and quickly attracted public PoC code and discussion across security communities.
Technical Details#
The flaw resides in the function ssh2_transport_read(), which processes inbound SSH packets. The implementation fails to enforce the maximum allowed packet_length as defined by the SSH RFC. An attacker‑controlled SSH server can therefore send a packet with a deliberately inflated length field. The client library copies the oversized payload into a fixed‑size heap buffer, causing an that can corrupt adjacent memory structures.



