CVE-2026-58050

Publication date 28 June 2026

Last updated 13 July 2026


Ubuntu priority

Cvss 3 Severity Score

7.0 · High

Score breakdown

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.

Status

Package Ubuntu Release Status
libssh2 26.04 LTS resolute
Fixed 1.11.1-1ubuntu0.26.04.3
25.10 questing Ignored end of life, was needs-triage
24.04 LTS noble
Fixed 1.11.0-4.1ubuntu0.24.04.3
22.04 LTS jammy
Needs evaluation
20.04 LTS focal
Needs evaluation
18.04 LTS bionic
Needs evaluation
14.04 LTS trusty
Needs evaluation

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
libssh2

Severity score breakdown

CVSS version:

Base score 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

Base score 7.0 · High

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H


Access our resources on patching vulnerabilities