CVE-2026-58050: libssh2 Integer Overflow or Wraparound
Vulnerability summary
CVE-2026-58050 is a high (CVSS 8.3) Integer Overflow or Wraparound vulnerability in libssh2. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 37.3% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 15 · Related 13Timeline
- 28-06-2026PublishedVulnerability first disclosed.
- 29-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
11 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
- NVDNIST8.3HighCVSS: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
- OSV · Red hatEcosystem advisory · calculated7.0HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.44%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
0.00 pp
From 0.44% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploitarium
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- libssh2All versions (No fix recorded)
- libssh2-devAll versions (No fix recorded)
- libssh2-docAll versions (No fix recorded)
Redhat3 products
- libssh2< 0:1.11.1-10.4.hum1
- libssh2-devel< 0:1.11.1-10.4.hum1
- libssh2-docs< 0:1.11.1-10.4.hum1
Wolfi3 products
- libssh2All versions (No fix recorded)
- libssh2-devAll versions (No fix recorded)
- libssh2-docAll versions (No fix recorded)
Alpine1 product
- libssh2< 1.11.1-r4
Debian1 product
- libssh2< 1.10.0-3+deb12u1 | < 1.11.1-1+deb13u2 | < 1.11.1-6
Libssh21 product
- libssh2≤ 1.11.1
Ubuntu1 product
- libssh2< 1.4.3-2ubuntu0.2+esm4 | < 1.5.0-2ubuntu0.1+esm3 | < 1.8.0-1ubuntu0.1+esm1 | < 1.8.0-2.1ubuntu0.1+esm1 | < 1.10.0-3ubuntu0.1 | < 1.11.0-4.1ubuntu0.24.04.3 | All versions (No fix recorded) | < 1.11.1-1ubuntu0.26.04.3
7 vendors · 13 products
References
18 links- github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-pocExploitThird Party AdvisoryARTICLEREPORTEVIDENCEBroken Link
- www.vulncheck.com/advisories/libssh2-integer-overflow-in-publickey-subsystem-attribute-allocationThird Party AdvisoryARTICLEREPORTAdvisory
- images.redhat.comARTICLE