CVE Catalog

CVE-2026-58050

HighCVSS 7.0
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.33%

25th percentile - higher than 25% of all known CVEs

Summary

A vulnerability in libssh2 up to version 1.11.1 allows an attacker-controlled SSH server to read a 32-bit attribute count from a publickey-subsystem response. This count is used for memory allocation without bounds checking, causing multiplication overflow on 32-bit platforms and an undersized buffer. A malicious server can then write past the allocation, leading to a heap buffer overflow in the connecting libssh2 client.

Risk Assessment

The risk includes potential remote code execution or client crash via a malicious SSH server. An attacker could exploit this to gain control over the client system or cause denial of service.

Recommendation

Immediately upgrade libssh2 to version 1.11.2 or later, which includes the fix. If an upgrade is not possible, restrict SSH connections to trusted servers only.

Other vulnerabilities in libssh2

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS