Out-of-bounds read in libssh - CVE-2026-59842
Published: July 27, 2026
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.