Skip to main content
CVE-2026-58051VulnerabilityPublished Updated

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

Affects libssh2Source GCVE Database

0
Compare
Authoritative record:CVE-2026-58051· Medium 6.5

Not known to be exploited · CVSS 6.5 Medium · fixed in 1.4.3-2ubuntu0.2+esm4 : update libssh2 when convenient.

Data as of 24 Nov 2026, 20:44 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 3.16.5
CNA (VulnCheck)CVSS 4.08.3
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:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Exploitation evidence

t = 0 is the CVE’s publication on cve.org

  1. Disclosed: evidence found.

    CVE published 28 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CISA SSVC: proof of concept public

  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

Timeline

  1. CVE ID reserved

    by VulnCheck

    , 37 minutes before disclosure

  2. CVE published

    on cve.org

    , t = 0

  3. CISA SSVC assessment

    proof of concept public

    , 35 hours after disclosure

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA SSVC, the Metasploit, Exploit-DB and nuclei-templates index as of 23 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 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.

References

Community reviews

Loading reviews…