CVE-2026-58050CWE-190

libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation

High · published June 28, 2026

CVSS v4.0
8.3
EPSS
0%
Percentile
37.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.3 · HIGH
Vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
EPSS
0.00444 · 37.7th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
Published
2026-06-28T01:32Z
EPSS history
Timeline
  • 28 JUN 01:32Z
    libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation
    cvelistv5