CVE-2026-55200: Pre-authentication remote code execution in libssh2 SSH transport parsing
- Vendor
- Libssh2
CVE-2026-55200 is an out-of-bounds heap write vulnerability affecting libssh2 through version 1.11.1. The ssh2_transport_read() function fails to enforce an upper bound on the packet_length field before performing size arithmetic. An excessively large value can cause integer wraparound and an undersized heap allocation, followed by writes beyond the allocated buffer. A malicious or compromised SSH server can trigger the flaw in a connecting libssh2 client during SSH transport establishment, before authentication completes. Successful exploitation may permit arbitrary code execution on the client.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can corrupt heap memory in applications using vulnerable libssh2, potentially causing application crashes or arbitrary code execution with the privileges of the affected client process. Code execution could compromise data and operations accessible to that process. Exposure extends to applications and devices embedding or statically linking libssh2, including development tooling, CI/CD systems, backup agents, and embedded appliances; actual exposure depends on whether they use the vulnerable library for SSH connections.
Mitigation
If you can’t patch tonight, do this now.
Restrict outbound SSH connections from affected clients to explicitly trusted servers using network controls and segmentation. Temporarily disable SSH-based automation, backup tasks, or CI/CD operations that connect to unverified endpoints when patching is not feasible. Monitor for unexpected external SSH connections and client crashes during connection establishment. Runtime hardening, including ASLR, hardened allocators, and mandatory access controls, may reduce exploitation reliability or impact but does not remove the vulnerability. Host-key verification should remain enabled but is not a complete defense against a flaw reachable before host trust is established.
Remediation
Patch, then assume compromise.
Install a vendor-supported libssh2 package incorporating the packet-length bounds-checking fix, or apply the upstream fix identified as commit 97acf3d. The fix rejects packet_length values exceeding LIBSSH2_PACKET_MAXPAYLOAD before vulnerable arithmetic occurs. Fixed downstream packages include Debian trixie libssh2 1.11.1-1+deb13u1 and Alpine Linux libssh2 1.11.1-r3 or later. Update Rust/Cargo to 1.96.1 or later where Cargo includes the affected library; Alpine packages are fixed in 1.96.1-r0 or later. Inventory embedded and statically linked copies and rebuild or replace dependent binaries and container images, since updating the system library alone does not repair those copies.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-55200 exploited in the wild?
- Yes. As of Nov 26, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-55200?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-55200, the earliest disclosed Jun 23, 2026.
- Is there a patch for CVE-2026-55200?
- Install a vendor-supported libssh2 package incorporating the packet-length bounds-checking fix, or apply the upstream fix identified as commit 97acf3d. The fix rejects packet_length values exceeding LIBSSH2_PACKET_MAXPAYLOAD before vulnerable arithmetic occurs.
- What products are affected by CVE-2026-55200?
- Libssh2.
- How severe is CVE-2026-55200?
- CVE-2026-55200 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 0.83% (55th percentile) as of Nov 26, 2026.
Recent activity
149 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.