Vulnerability · Published Jun 28, 2026 · Assigned by VulnCheck

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

High 7.0

In plain English

A high-severity integer overflow in libssh2 from libssh2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.0High
Exploit odds (30 days)0.4%top 61.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21libssh21.11.1-r3ALPINE-CVE-2026-58050
Alpine:v3.22libssh21.11.1-r3ALPINE-CVE-2026-58050
Alpine:v3.23libssh21.11.1-r4ALPINE-CVE-2026-58050
Alpine:v3.24libssh21.11.1-r4ALPINE-CVE-2026-58050
Debian:12libssh21.10.0-3+deb12u1DEBIAN-CVE-2026-58050
Debian:13libssh21.11.1-1+deb13u2DEBIAN-CVE-2026-58050
Debian:14libssh21.11.1-6DEBIAN-CVE-2026-58050
Ubuntu:22.04:LTSlibssh21.10.0-3ubuntu0.1UBUNTU-CVE-2026-58050
Ubuntu:22.04:LTSlibssh21.10.0-3ubuntu0.1USN-8799-1
Ubuntu:24.04:LTSlibssh21.11.0-4.1ubuntu0.24.04.3UBUNTU-CVE-2026-58050
Ubuntu:24.04:LTSlibssh21.11.0-4.1ubuntu0.24.04.3USN-8532-1
Ubuntu:25.10libssh2no fix listedUBUNTU-CVE-2026-58050
Ubuntu:26.04:LTSlibssh21.11.1-1ubuntu0.26.04.3UBUNTU-CVE-2026-58050
Ubuntu:26.04:LTSlibssh21.11.1-1ubuntu0.26.04.3USN-8532-1

Affected products (as reported)

VendorProductVersions
libssh2 libssh2 0 – through 1.11.1

Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H

References