CVE catalog

CVE-2026-58051

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_pu

[CVE catalog]

Severity
High · CVSS 8.3CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.28% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibssh2sid1.11.1-6fixed
Debianlibssh2forky1.11.1-6fixed
Debianlibssh2trixie1.11.1-1+deb13u2fixed
Debianlibssh2trixie-security1.11.1-1+deb13u1vulnerable
Debianlibssh2bookworm1.10.0-3vulnerable
Debianlibssh2bookworm-security1.10.0-3+deb12u1fixed
Cpelibssh2Not reportedNot reportedvulnerable
Cpelibssh2Not reportedNot reportedunknown
Cpelibssh2Not reported1.11.0-4.1ubuntu0.24.04.3fixed
Cpelibssh2-1-devNot reported1.11.0-4.1ubuntu0.24.04.3fixed
Cpelibssh2-1t64Not reported1.11.0-4.1ubuntu0.24.04.3fixed
Ubuntulibssh2pro1.8.0-2.1build1vulnerable
Ubuntulibssh2pro1.8.0-2.1ubuntu0.1vulnerable
Ubuntulibssh2pro1.8.0-2.1ubuntu0.1+esm1fixed
Ubuntulibssh222.041.9.0-3vulnerable
Ubuntulibssh222.041.10.0-2vulnerable
Ubuntulibssh222.041.10.0-2build1vulnerable
Ubuntulibssh222.041.10.0-3vulnerable
Ubuntulibssh222.041.10.0-3ubuntu0.1fixed
Ubuntulibssh224.041.11.0-2vulnerable
Ubuntulibssh224.041.11.0-3vulnerable
Ubuntulibssh224.041.11.0-4vulnerable
Ubuntulibssh224.041.11.0-4.1build1vulnerable
Ubuntulibssh224.041.11.0-4.1build2vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.1vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.2vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.3fixed
Ubuntulibssh225.101.11.1-1vulnerable
Ubuntulibssh225.101.11.1-1build1vulnerable
Ubuntulibssh225.101.11.1-1ubuntu0.25.10.1vulnerable
Ubuntulibssh225.101.11.1-1ubuntu0.25.10.2vulnerable
Ubuntulibssh226.041.11.1-1build1vulnerable
Ubuntulibssh226.041.11.1-1build2vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.1vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.2vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.3fixed
Alpinelibssh23.211.11.1-r3fixed
Alpinelibssh23.221.11.1-r3fixed
Alpinelibssh23.231.11.1-r4fixed
Alpinelibssh23.241.11.1-r4fixed
Cpelibssh2Not reportedNot reportedunknown

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibssh2sourcesid1.11.1-6not yet assignedNot reported[1144415]
Debianlibssh2sourceforky1.11.1-6not yet assignedNot reported[1144415]
Debianlibssh2sourcetrixie1.11.1-1+deb13u2not yet assignedNot reported[1144415]
Debianlibssh2sourcebookworm1.10.0-3+deb12u1not yet assignedNot reported[1144415]
Cpelibssh2cpeNot reported1.11.0-4.1ubuntu0.24.04.3Not reportedNot reportedNot reported
Cpelibssh2-1-devcpeNot reported1.11.0-4.1ubuntu0.24.04.3Not reportedNot reportedNot reported
Cpelibssh2-1t64cpeNot reported1.11.0-4.1ubuntu0.24.04.3Not reportedNot reportedNot reported
Ubuntulibssh2debpro1.8.0-2.1ubuntu0.1+esm1Not reportedUBUNTU-CVE-2026-58051Not reported
Ubuntulibssh2deb22.041.10.0-3ubuntu0.1Not reportedUBUNTU-CVE-2026-58051Not reported
Ubuntulibssh2deb24.041.11.0-4.1ubuntu0.24.04.3Not reportedUBUNTU-CVE-2026-58051Not reported
Ubuntulibssh2deb26.041.11.1-1ubuntu0.26.04.3Not reportedUBUNTU-CVE-2026-58051Not reported
Alpinelibssh2apk3.211.11.1-r3Not reportedALPINE-CVE-2026-58051Not reported
Alpinelibssh2apk3.221.11.1-r3Not reportedALPINE-CVE-2026-58051Not reported
Alpinelibssh2apk3.231.11.1-r4Not reportedALPINE-CVE-2026-58051Not reported
Alpinelibssh2apk3.241.11.1-r4Not reportedALPINE-CVE-2026-58051Not reported

[Debian bug #1144415]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libssh2-1]Affected

    Source package: [libssh2]

    Details (2)
    • 1.10.0-3+b1 · amd64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

    • 1.10.0-3+b1 · arm64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

  • [libssh2-1-dev]Affected

    Source package: [libssh2]

    Details (2)
    • 1.10.0-3+b1 · amd64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

    • 1.10.0-3+b1 · arm64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

[Debian 13 (Trixie)]

  • [libssh2-1-dev]Affected

    Source package: [libssh2]

    Details (4)
    • 1.11.1-1+deb13u1 · amd64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · amd64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

  • [libssh2-1t64]Affected

    Source package: [libssh2]

    Details (4)
    • 1.11.1-1+deb13u1 · amd64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · amd64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

Observed:

References