CVE-2026-59842
Libssh: libssh: information disclosure via short gssapi curve25519 public key
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
3.7
Libssh: libssh: information disclosure via short gssapi curve25519 public key
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.
- Record
CVE-2026-59842- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-06
EUVDEUVD-2026-46176
3.7
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.
- Record
EUVD-2026-46176- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-06
GitHub AdvisoriesGHSA-x94w-cg8g-g593
3.7
A flaw was found in libssh. During server-side GSSAPI key exchange, a client-supplied Curve25519...
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.
- Record
GHSA-x94w-cg8g-g593- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-02
NVD
3.7
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.
- Record
CVE-2026-59842- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-06
OSVALPINE-CVE-2026-59842
5.3
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.
- Record
ALPINE-CVE-2026-59842- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-03
OSVBELL-CVE-2026-59842
5.3
- Record
BELL-CVE-2026-59842- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
Show 7 moreShow less
OSV
3.7
Libssh: libssh: information disclosure via short gssapi curve25519 public key
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.
- Record
CVE-2026-59842- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-07
OSVDEBIAN-CVE-2026-59842
5.3
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.
- Record
DEBIAN-CVE-2026-59842- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-07
OSVRHSA-2026:42922
8.8
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- Record
RHSA-2026:42922- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2026:55855
8.8
Red Hat Security Advisory: libssh security update
- Record
RHSA-2026:55855- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRLSA-2026:55855
8.8
Important: libssh security update
libssh is a library which implements the SSH protocol. It can be used to implement client and server applications.
Security Fix(es):
-
libssh: libssh: information disclosure via short GSSAPI Curve25519 public key (CVE-2026-59842)
-
libssh: libssh: denial of service via zero advertised channel packet size (CVE-2026-59843)
-
libssh: libssh: denial of service via oversized SFTP read length (CVE-2026-59844)
-
libssh: libssh: denial of service via unchecked ProxyCommand fork() failure (CVE-2026-59845)
-
libssh: libssh: information disclosure via ProxyCommand %r username expansion (CVE-2026-59846)
-
libssh: libssh: integrity downgrade via OpenSSL AES-GCM tag verification (CVE-2026-59847)
-
libssh: libssh: denial of service via SFTP responses with unknown request IDs (CVE-2026-59848)
-
libssh: libssh: denial of service via automatic certificate authentication loop (CVE-2026-59849)
-
libssh: libssh: use-after-free via data callbacks on closed channels (CVE-2026-59850)
-
libssh: libssh: authentication bypass via missing GSSAPI principal check (CVE-2026-59851)
-
libssh: libssh: stack buffer overflow in SFTP server longname construction (CVE-2026-15370)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
RLSA-2026:55855- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-59842
3.7
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.
- Record
UBUNTU-CVE-2026-59842- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
OSVALSA-2026:55855 No score
Important: libssh security update
libssh is a library which implements the SSH protocol. It can be used to implement client and server applications.
Security Fix(es):
- libssh: libssh: information disclosure via short GSSAPI Curve25519 public key (CVE-2026-59842)
- libssh: libssh: denial of service via zero advertised channel packet size (CVE-2026-59843)
- libssh: libssh: denial of service via oversized SFTP read length (CVE-2026-59844)
- libssh: libssh: denial of service via unchecked ProxyCommand fork() failure (CVE-2026-59845)
- libssh: libssh: information disclosure via ProxyCommand %r username expansion (CVE-2026-59846)
- libssh: libssh: integrity downgrade via OpenSSL AES-GCM tag verification (CVE-2026-59847)
- libssh: libssh: denial of service via SFTP responses with unknown request IDs (CVE-2026-59848)
- libssh: libssh: denial of service via automatic certificate authentication loop (CVE-2026-59849)
- libssh: libssh: use-after-free via data callbacks on closed channels (CVE-2026-59850)
- libssh: libssh: authentication bypass via missing GSSAPI principal check (CVE-2026-59851)
- libssh: libssh: stack buffer overflow in SFTP server longname construction (CVE-2026-15370)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2026:55855- Updated
- 2026-11-02
Affected products
- libssh
- red hat enterprise linux 10
- red hat enterprise linux 8
- red hat enterprise linux 9
- red hat hardened images
- redhat enterprise linux
- redhat enterprise linux for els
- redhat enterprise linux for eus
- redhat enterprise linux for ibm z systems
- redhat enterprise linux for ibm z systems els
- redhat enterprise linux for ibm z systems eus
- redhat enterprise linux for power little endian
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libsshAlpine:v3.24 |
before 0.12.1-r0 | 0.12.1-r0 |
libsshAlmaLinux:10 From an advisory covering 11 CVEs |
before 0.12.0-3.el10_2 | 0.12.0-3.el10_2 |
libssh-configAlmaLinux:10 From an advisory covering 11 CVEs |
before 0.12.0-3.el10_2 | 0.12.0-3.el10_2 |
libssh-develAlmaLinux:10 From an advisory covering 11 CVEs |
before 0.12.0-3.el10_2 | 0.12.0-3.el10_2 |
libsshAlpaquita:stream |
0.9.6-r1 up to 0.12.1-r0 | 0.12.1-r0 |
libsshDebian:14 |
before 0.12.1-1, plus listed versions 0.11.2-10.11.3-10.12.0-10.12.0-20.12.0-3 |
0.12.1-1 |
libsshRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:0.12.1-4.hum1 | 0:0.12.1-4.hum1 |
libssh-configRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:0.12.1-4.hum1 | 0:0.12.1-4.hum1 |
libssh-develRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:0.12.1-4.hum1 | 0:0.12.1-4.hum1 |
libssh-debuginfoRed Hat:enterprise_linux:10.2 From an advisory covering 11 CVEs |
before 0:0.12.0-3.el10_2 | 0:0.12.0-3.el10_2 |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libssh-debugsourceRed Hat:enterprise_linux:10.2 From an advisory covering 11 CVEs |
before 0:0.12.0-3.el10_2 | 0:0.12.0-3.el10_2 |
libssh-develRed Hat:enterprise_linux:10.2 From an advisory covering 11 CVEs |
before 0:0.12.0-3.el10_2 | 0:0.12.0-3.el10_2 |
libsshRed Hat:enterprise_linux:10.2 From an advisory covering 11 CVEs |
before 0:0.12.0-3.el10_2 | 0:0.12.0-3.el10_2 |
libssh-configRed Hat:enterprise_linux:10.2 From an advisory covering 11 CVEs |
before 0:0.12.0-3.el10_2 | 0:0.12.0-3.el10_2 |
libsshRocky Linux:10 From an advisory covering 11 CVEs |
before 0:0.12.0-3.el10_2 | 0:0.12.0-3.el10_2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-59842 is a low vulnerability (CVSS 3.7) in Libssh, published July 21, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.49%, the 42nd percentile. Fixed in libssh 0.12.1-r0.
References
access.redhat.com/errata/RHSA-2026:42922
access.redhat.com/errata/RHSA-2026:55855
access.redhat.com/security/cve/CVE-2026-59842
bugzilla.redhat.com/show_bug.cgi?id=2498168
nvd.nist.gov/vuln/detail/CVE-2026-59842
github.com/advisories/GHSA-x94w-cg8g-g593
Show 67 moreShow less
security.alpinelinux.org/vuln/CVE-2026-59842
access.redhat.com/security/cve/CVE-2026-15370
access.redhat.com/security/cve/CVE-2026-59843
access.redhat.com/security/cve/CVE-2026-59844
access.redhat.com/security/cve/CVE-2026-59845
access.redhat.com/security/cve/CVE-2026-59846
access.redhat.com/security/cve/CVE-2026-59847
access.redhat.com/security/cve/CVE-2026-59848
access.redhat.com/security/cve/CVE-2026-59849
access.redhat.com/security/cve/CVE-2026-59850
access.redhat.com/security/cve/CVE-2026-59851
bugzilla.redhat.com/2498168
bugzilla.redhat.com/2498176
bugzilla.redhat.com/2498177
bugzilla.redhat.com/2498178
bugzilla.redhat.com/2498179
bugzilla.redhat.com/2498180
bugzilla.redhat.com/2498181
bugzilla.redhat.com/2498182
bugzilla.redhat.com/2498183
bugzilla.redhat.com/2498184
bugzilla.redhat.com/2499049
errata.almalinux.org/10/ALSA-2026-55855.html
docs.bell-sw.com/security/cves/CVE-2026-59842
access.redhat.com/downloads/content/package-browser
catalog.redhat.com/software/containers
github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59842.json
security-tracker.debian.org/tracker/CVE-2026-59842
images.redhat.com
access.redhat.com/security/updates/classification
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_42922.json
cve.org/CVERecord?id=CVE-2026-59842
bugzilla.redhat.com/show_bug.cgi?id=2498176
cve.org/CVERecord?id=CVE-2026-59843
nvd.nist.gov/vuln/detail/CVE-2026-59843
bugzilla.redhat.com/show_bug.cgi?id=2498177
cve.org/CVERecord?id=CVE-2026-59844
nvd.nist.gov/vuln/detail/CVE-2026-59844
bugzilla.redhat.com/show_bug.cgi?id=2498178
cve.org/CVERecord?id=CVE-2026-59845
nvd.nist.gov/vuln/detail/CVE-2026-59845
bugzilla.redhat.com/show_bug.cgi?id=2498179
cve.org/CVERecord?id=CVE-2026-59846
nvd.nist.gov/vuln/detail/CVE-2026-59846
bugzilla.redhat.com/show_bug.cgi?id=2498180
cve.org/CVERecord?id=CVE-2026-59847
nvd.nist.gov/vuln/detail/CVE-2026-59847
bugzilla.redhat.com/show_bug.cgi?id=2498181
cve.org/CVERecord?id=CVE-2026-59848
nvd.nist.gov/vuln/detail/CVE-2026-59848
bugzilla.redhat.com/show_bug.cgi?id=2498182
cve.org/CVERecord?id=CVE-2026-59849
nvd.nist.gov/vuln/detail/CVE-2026-59849
bugzilla.redhat.com/show_bug.cgi?id=2498183
cve.org/CVERecord?id=CVE-2026-59850
nvd.nist.gov/vuln/detail/CVE-2026-59850
bugzilla.redhat.com/show_bug.cgi?id=2498184
cve.org/CVERecord?id=CVE-2026-59851
nvd.nist.gov/vuln/detail/CVE-2026-59851
bugzilla.redhat.com/show_bug.cgi?id=2499049
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_55855.json
cve.org/CVERecord?id=CVE-2026-15370
nvd.nist.gov/vuln/detail/CVE-2026-15370
errata.rockylinux.org/RLSA-2026:55855
ubuntu.com/security/CVE-2026-59842
libssh.org/2026/07/21/libssh-0-12-1-and-0-11-5-security-releases
libssh.org/security/advisories/CVE-2026-59842.txt