Advisory

UBUNTU-CVE-2026-58051

Also known as: CVE-2026-58051

Summary

The record has no summary.

Details

libssh2 through 1.11.1 grows its publickey list with SSH2_REALLOC but does not zero-initialize new entries before parsing populates them, so a parse failure reaching the cleanup path leaves libssh2_publickey_list_free operating on an uninitialized entry. A malicious SSH server offering the publickey subsystem can use a malformed response to make cleanup free an uninitialized, attacker-influenceable attrs pointer in a connecting libssh2 client.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/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