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

- Severity: Low 3.7 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-07-21T11:08:30.540Z
- Modified: 2026-11-25T17:17:55.800Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- libssh: no versions given (not affected: from 0:0.12.0-3.el10_2 before *)
- libssh-main: no versions given (not affected: from 0.12.1-4.hum1 before *)
- libssh libssh: 0.12.0
- redhat hardened_images: no versions given
- redhat enterprise_linux: 10.0; 10.2
- redhat enterprise_linux_for_els: 10.2
- redhat enterprise_linux_for_eus: 10.2
- redhat enterprise_linux_for_ibm_z_systems: 10.0; 10.2
- redhat enterprise_linux_for_ibm_z_systems_els: 10.2
- redhat enterprise_linux_for_ibm_z_systems_eus: 10.2
- redhat enterprise_linux_for_power_little_endian: 10.0; 10.2
- redhat enterprise_linux_for_power_little_endian_els: 10.2
- redhat enterprise_linux_for_power_little_endian_eus: 10.2

## Every score

- redhat: 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`
- NVD: 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`

## References

- <https://access.redhat.com/errata/RHSA-2026:42922> (issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:55855> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-59842> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2498168> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2026-59842](https://www.cve.org/CVERecord?id=CVE-2026-59842), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-59842](https://nvd.nist.gov/vuln/detail/CVE-2026-59842), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-59842 · Whole record: https://cve.day/CVE-2026-59842.json · Rebuilt by cve.day 2026-11-25T23:18:23.081Z
