CVE-2025-8277: Libssh: memory exhaustion via repeated key exchange in libssh
Vulnerability summary
CVE-2025-8277 is a low (CVSS 3.1) vulnerability in libssh. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 42% of scored vulnerabilities.
Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 9Timeline
- 09-09-2025PublishedVulnerability first disclosed.
- 25-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
- NVDNIST3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.43% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- libssh< 0.10.6-0+deb12u2 | < 0.11.2-1+deb13u1 | < 0.11.3-1
Suse1 product
- libssh&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 0.6.3-12.18.1
Ubuntu1 product
- libssh< 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
3 vendors · 3 products