CVE-2026-59842: Libssh: libssh: information disclosure via short gssapi curve25519 public key

Published Jul 8, 2026
·
Updated

A flaw was found in libssh in the server-side GSSAPI Curve25519 key exchange path in src/kex-gss.c. In sshservergsskexprocessinit(), a client-controlled SSH string is unpacked into clientpubkey and then copied with memcpy(..., CURVE25519PUBKEYSIZE) without validating sshstringlen(clientpubkey). A remote unauthenticated client can send a short public key in SSHMSGKEXGSSINIT and trigger an out-of-bounds heap read during handshake processing, disclosing small amounts of adjacent server memory.

Other sources

A flaw was found in libssh. During server-side GSSAPI key exchange, a client-supplied Curve25519 public key shorter than the expected length is copied without proper length validation, leading to an out-of-bounds heap read. This could allow a remote unauthenticated attacker to disclose small amounts of server memory.

MITRE

Affected Software

4 affected components
libssh libssh
libssh libssh
redhat Hardened Images
redhat Enterprise Linux=10.0

Event History

Jul 8, 2026
Data Sourced
via Red Hat·05:57 PM
DescriptionSeverityAffected Software
Jul 21, 2026
CVE Published
via MITRE·11:08 AM
Data Sourced
via MITRE·11:08 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:18 PM
DescriptionSeverityWeaknessAffected Software
Sep 6, 58547
Event
via NVD·05:46 AM
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-59842?

The severity of CVE-2026-59842 is classified as medium with a score of 5.3.

2

What vulnerability does CVE-2026-59842 describe?

CVE-2026-59842 describes an information disclosure flaw in libssh related to the handling of short GSSAPI Curve25519 public keys.

3

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

To mitigate CVE-2026-59842, update libssh and apply any security patches provided by your operating system vendor.

4

Which software is affected by CVE-2026-59842?

CVE-2026-59842 affects libssh, as well as Red Hat Hardened Images and Red Hat Enterprise Linux.

5

When was CVE-2026-59842 published?

CVE-2026-59842 was published on July 8, 2026.

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