CVE-2026-58050 libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation

High 8.3 Published Updated

A malicious SSH server can trigger an integer overflow in libssh2 clients, leading to a heap buffer overflow and potential code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-58050?

CVE-2026-58050 is a high-severity vulnerability in libssh2, published on 28 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation num_attrs * sizeof(libssh2_publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client.

Weakness: CWE-190

Which versions are affected by CVE-2026-58050?

It affects 1 product.

Linux distribution packages (3)
libssh2 Red Hat:hummingbird:1All versions0:1.11.1-10.4.hum1
libssh2-devel Red Hat:hummingbird:1All versions0:1.11.1-10.4.hum1
libssh2-docs Red Hat:hummingbird:1All versions0:1.11.1-10.4.hum1

Products include Libssh2 Libssh2.

How do I fix CVE-2026-58050?

Upgrade to a fixed version.

Is CVE-2026-58050 being exploited?

There is no known exploitation of CVE-2026-58050 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2026-58050, AZL-97407, AZL-97434, BELL-CVE-2026-58050, CLSA-2026-1783634800, CLSA-2026-1783635077 and 11 more.

Is CVE-2026-58050 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free