CVE catalog

CVE-2026-58050

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 bou

[CVE catalog]

Severity
High · CVSS 8.3CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/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.44% · Oct 27, 2026

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.

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
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
Opensuselibssh2_orgtumbleweed1.11.1-4.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
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 reportedUSN-8799-1Not reported
Ubuntulibssh2deb22.041.10.0-3ubuntu0.1Not reportedUSN-8799-1Not reported
Ubuntulibssh2debpro1.8.0-2.1ubuntu0.1+esm1Not reportedUBUNTU-CVE-2026-58050Not reported
Ubuntulibssh2deb22.041.10.0-3ubuntu0.1Not reportedUBUNTU-CVE-2026-58050Not reported
Ubuntulibssh2deb24.041.11.0-4.1ubuntu0.24.04.3Not reportedUBUNTU-CVE-2026-58050Not reported
Ubuntulibssh2deb26.041.11.1-1ubuntu0.26.04.3Not reportedUBUNTU-CVE-2026-58050Not reported
Opensuselibssh2_orgrpmtumbleweed1.11.1-4.1Not reportedOPENSUSE-SU-2026:11454-1Not reported
Ubuntulibssh2deb24.041.11.0-4.1ubuntu0.24.04.3Not reportedUSN-8532-1Not reported
Ubuntulibssh2deb26.041.11.1-1ubuntu0.26.04.3Not reportedUSN-8532-1Not reported
Alpinelibssh2apk3.211.11.1-r3Not reportedALPINE-CVE-2026-58050Not reported
Alpinelibssh2apk3.221.11.1-r3Not reportedALPINE-CVE-2026-58050Not reported
Alpinelibssh2apk3.231.11.1-r4Not reportedALPINE-CVE-2026-58050Not reported
Alpinelibssh2apk3.241.11.1-r4Not reportedALPINE-CVE-2026-58050Not 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

[openSUSE Tumbleweed]

  • [libssh2-1]Unknown

    Source package: [libssh2_org]

    Details (1)
    • 1.11.1-4.1 · x86_64 · tumbleweed

      Unknown · Fixed: 1.11.1-4.1

      Version impact unknown

      nvd · libssh2_org · opensuse · tumbleweed

  • Source package: [libssh2_org]

    Details (1)
    • 1.11.1-4.1 · x86_64 · tumbleweed

      Unknown · Fixed: 1.11.1-4.1

      Version impact unknown

      nvd · libssh2_org · opensuse · tumbleweed

  • [libssh2-devel]Unknown

    Source package: [libssh2_org]

    Details (1)
    • 1.11.1-4.1 · x86_64 · tumbleweed

      Unknown · Fixed: 1.11.1-4.1

      Version impact unknown

      nvd · libssh2_org · opensuse · tumbleweed

Observed:

References