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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-09 · Modified: 2026-11-25
- Aliases: SUSE-SU-2025:3897-1, UBUNTU-CVE-2025-8277, DEBIAN-CVE-2025-8277
- Record: https://cvemate.com/vulnerability/CVE-2025-8277 · JSON: https://cvemate.com/vulnerability/CVE-2025-8277/json

## Description

```text
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.
```

## Signals

- CVSS: 3.1 low (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.466%, percentile 42.001%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libssh (Debian): \< 0.10.6-0+deb12u2 \| \< 0.11.2-1+deb13u1 \| \< 0.11.3-1
- ubuntu libssh (Ubuntu): \< 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm6 \| \< 0.9.3-2ubuntu2.5+esm3 \| \< 0.9.6-2ubuntu0.22.04.6 \| \< 0.10.6-2ubuntu0.3 \| \< 0.11.2-1ubuntu0.2
- suse libssh&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 (SUSE Linux Enterprise): \< 0.6.3-12.18.1

## References

- <https://access.redhat.com/errata/RHSA-2026:18683>
- <https://access.redhat.com/security/cve/CVE-2025-8277>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2383888>
- <https://www.libssh.org/security/advisories/CVE-2025-8277.txt>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20253897-1/>
- <https://bugzilla.suse.com/1249375>
- <https://www.suse.com/security/cve/CVE-2025-8277>
- <https://ubuntu.com/security/CVE-2025-8277>
- <https://www.cve.org/CVERecord?id=CVE-2025-8277>
- <https://ubuntu.com/security/notices/USN-8051-1>
- <https://ubuntu.com/security/notices/USN-8051-2>
- <https://security-tracker.debian.org/tracker/CVE-2025-8277>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8277>

---

Data as of 2026-12-05T05:10:31.689Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
