Advisory

UBUNTU-CVE-2026-58050

Also known as: CVE-2026-58050

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H

Dates

Published
2026-06-28 02:16 UTC
Modified
2026-09-23 07:41 UTC

Affected packages and fixes

libssh2

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.10.0-3ubuntu0.1 (ecosystem)

Fixed versions

1.10.0-3ubuntu0.1

Fix

  • Fixed version 1.10.0-3ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libssh2

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 1.11.0-4.1ubuntu0.24.04.3 (ecosystem)

Fixed versions

1.11.0-4.1ubuntu0.24.04.3

Fix

  • Fixed version 1.11.0-4.1ubuntu0.24.04.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libssh2

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

libssh2

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 1.11.1-1ubuntu0.26.04.3 (ecosystem)

Fixed versions

1.11.1-1ubuntu0.26.04.3

Fix

  • Fixed version 1.11.1-1ubuntu0.26.04.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences