Skip to main content
CVE-2026-58050VulnerabilityPublished Updated

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

Affects libssh2Source GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High · fixed in 1.4.3-2ubuntu0.2+esm4 : patch libssh2 soon.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.4.3-2ubuntu0.2+esm4, 1.5.0-2ubuntu0.1+esm3, 1.8.0-1ubuntu0.1+esm1 +4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=resoluteOther threatsAffected
  • <1.11.1-1ubuntu0.26.04.3
Fixed in
  • 1.11.1-1ubuntu0.26.04.3
Ubuntu 25.10libssh2pkg:deb/ubuntu/libssh2?arch=source&distro=questingOther threatsAffected
  • 1.11.1-1 – 1.11.1-1ubuntu0.25.10.2
4 affected builds
Fixed in–
Ubuntu 24.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=nobleOther threatsAffected
  • <1.11.0-4.1ubuntu0.24.04.3
Fixed in
  • 1.11.0-4.1ubuntu0.24.04.3
Ubuntu 22.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=jammyOther threatsAffected
  • <1.10.0-3ubuntu0.1
Fixed in
  • 1.10.0-3ubuntu0.1
Ubuntu Pro 20.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps/focalOther threatsAffected
  • <1.8.0-2.1ubuntu0.1+esm1
Fixed in
  • 1.8.0-2.1ubuntu0.1+esm1
Ubuntu Pro 18.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps/bionicOther threatsAffected
  • <1.8.0-1ubuntu0.1+esm1
Fixed in
  • 1.8.0-1ubuntu0.1+esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…