CVE-2026-58050: libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation

Published Jun 28, 2026
·
Updated

Last updated 13 July 2026

Other sources

libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation numattrs sizeof(libssh2publickeyattribute) 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.

MITRE

Affected Software

3 affected components
libssh2 libssh2<=1.11.1
libssh2 libssh2<=1.11.1
debian/libssh2

Event History

Jun 28, 2026
CVE Published
via MITRE·01:32 AM
Data Sourced
via MITRE·01:32 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeaknessAffected Software
Jul 13, 2026
Data Sourced
via Ubuntu·02:21 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·02:23 PM
DescriptionAffected Software
Data Sourced
via Launchpad·02:23 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-58050?

The severity of CVE-2026-58050 is rated as high, with a score of 7.

2

How does CVE-2026-58050 exploit integer overflow?

CVE-2026-58050 exploits integer overflow by reading an attacker-controlled 32-bit attribute count that leads to an undersized buffer allocation.

3

Which software versions are affected by CVE-2026-58050?

CVE-2026-58050 affects libssh2 versions through 1.11.1.

4

What are the potential impacts of CVE-2026-58050?

The potential impacts of CVE-2026-58050 include buffer overflow that can lead to application crashes or execution of arbitrary code.

5

How can I mitigate the risks associated with CVE-2026-58050?

To mitigate risks associated with CVE-2026-58050, update to the latest version of libssh2 that addresses this vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203