# CVE-2025-8277: Libssh: memory exhaustion via repeated key exchange in libssh

- Severity: Low 3.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L`
- 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.47%, higher than 41% of CVEs (2026-12-01)
- Published: 2025-09-09T11:55:39.036Z
- Modified: 2026-11-25T16:17:30.797Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A flaw was found in libssh's handling of key exchange (KEX) processes when a client repeatedly sends incorrect KEX guesses. The library fails to free memory during these rekey operations, which can gradually exhaust system memory. This issue can lead to crashes on the client side, particularly when using libgcrypt, which impacts application stability and availability.

(As written by CVE List.)

## Affected

- libssh: from 0.6.0 before 0.11.3 (not affected: from 0:0.10.4-18.el9 before *)
- libssh2: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2026:18683> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-8277> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2383888> (issue-tracking)
- <https://www.libssh.org/security/advisories/CVE-2025-8277.txt>

## Sources

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

---

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