CVE Watchtower

CVE-2026-58050libssh2 Integer Overflow or Wraparound

NVD

Vulnerability Summary

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.
Severity Level
HIGH(7.0)
Published Date
Jun 28, 2026
Last Modified
Jun 29, 2026
Exploitation Status
Public exploit available
EPSS Score (30-Day)
0.36%Probability
Root Weakness (CWE)
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes the resulting value will always be larger than the original.
CVSS v4.0 Base Metrics — Score 8.3 (HIGH)
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
Attack VectorNetwork
Attack ComplexityHigh
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)Low
Integrity (Vulnerable System)Low
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 7.0)
CVSS v3.1 Base Metrics — Score 7.0 (HIGH)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityLow
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • libssh2 <= 1.11.1
Patched Versions
  • libssh2 1.11.1

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run libssh2 and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Jun 28, 2026Published
  • Jun 29, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new libssh2 CVEsYou are reading CVE-2026-58050. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

More libssh2 CVEs

Data last checked: Nov 19, 2026 03:28 UTC