Out-of-bounds read in libssh - CVE-2026-59842

 

Out-of-bounds read in libssh - CVE-2026-59842

Published: July 27, 2026


Vulnerability identifier: #VU139528
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-59842
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: libssh
Affected software:
libssh

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to out-of-bounds read in ssh_server_gss_kex_process_init when processing a GSSAPI key exchange with a malformed ephemeral Curve25519 public key. A remote attacker can send a specially crafted public key to disclose sensitive information.

Successful exploitation relies on observing whether key exchange succeeds after sending a shortened public key prefix, which may expose up to 32 bytes of adjacent heap memory.


How to mitigate CVE-2026-59842

Install security update from vendor's website.

Sources