CVEfocus › CVE database › CVE-2026-59842

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

CVSS 3.7 LowEPSS 0.5% (higher than 35% of CVEs)Published 2026-07-21Updated 2026-11-25Assigner: redhat

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.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libsshNot affected
vulnerable_code_not_present
Ubuntu 24.04libsshNot affected
vulnerable_code_not_present
Ubuntu 22.04libsshNot affected
vulnerable_code_not_present
Debian 14libsshFixed0.12.1-1DEBIAN-CVE-2026-59842
Red Hat Enterprise Linux 10libsshFixed0:0.12.0-3.el10_2RHSA-2026:55855
Red Hat Enterprise Linux 10libssh-configFixed0:0.12.0-3.el10_2RHSA-2026:55855
Red Hat Enterprise Linux 10libssh-develFixed0:0.12.0-3.el10_2RHSA-2026:55855
Red Hat Enterprise Linux 9libsshNot affected
Red Hat Enterprise Linux 9libssh-configNot affected
Red Hat Enterprise Linux 9libssh-develNot affected
Red Hat Enterprise Linux 8libsshNot affected
Red Hat Enterprise Linux 8libssh-configNot affected
Red Hat Enterprise Linux 8libssh-develNot affected
AlmaLinux 10libssh-configFixed0.12.0-3.el10_2ALSA-2026:55855
Rocky Linux 10libsshFixed0:0.12.0-3.el10_2RLSA-2026:55855
Alpine Linux 3.24libsshFixed0.12.1-r0ALPINE-CVE-2026-59842

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Disable GSSAPIKeyExchange or remove gss-curve25519-sha256- from GSSAPIKexAlgorithms if appropriate.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.