libssh2 Heap Out-of-Bounds Read via publickey subsystem
Description
To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle
Affected software
pkg:deb/ubuntu/libssh2?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps/xenialpkg:deb/ubuntu/libssh2?arch=source&distro=bionicpkg:deb/ubuntu/libssh2?arch=source&distro=focalpkg:deb/ubuntu/libssh2?arch=source&distro=jammypkg:deb/ubuntu/libssh2?arch=source&distro=noblepkg:deb/ubuntu/libssh2?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
libssh2 versions through 1.11.1 contain a vulnerability in the publickey subsystem where the version 1 response parser in libssh2_publickey_list_fetch() reads a server-controlled comment_len value without verifying buffer length. This leads to an out-of-bounds heap read that leaks heap pointers and subsequent heap allocator corruption when an uninitialized pointer is freed during error cleanup. The issue is fixed in commit a13bb6c.
Potential Impact
Exploitation of this vulnerability can lead to information disclosure by leaking heap pointers, which can defeat address space layout randomization (ASLR). Additionally, heap allocator state corruption may occur, potentially causing application crashes or enabling further exploitation. The CVSS 3.1 base score is 7.5, indicating a medium severity with high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix for this vulnerability is available in libssh2 as of commit a13bb6c. Users should upgrade to a version including this fix to remediate the issue. No vendor advisory content was provided to indicate alternative mitigations or if the issue is already mitigated in specific distributions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-66034
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
Threat ID: 6a984573acd9273b496ad57d
Added to database: 09/02/2026, 15:49:07 UTC
Last enriched: 09/07/2026, 22:09:15 UTC
Last updated: 10/18/2026, 18:48:22 UTC
Views: 39
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.