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
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
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 28 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libssh2pkg:deb/ubuntu/libssh2?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
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
- ubuntu.com/security/CVE-2026-58050 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-58050 (opens in a new tab)
- github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc (opens in a new tab)
- github.com/libssh2/libssh2/blob/master/src/publickey.c (opens in a new tab)
- vulncheck.com/advisories/libssh2-integer-overflow-in-publickey-subsystem-attribute-allocation (opens in a new tab)
- github.com/libssh2/libssh2/pull/2205 (opens in a new tab)
- ubuntu.com/security/notices/USN-8532-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8799-1 (opens in a new tab)