CVE-2025-8277 Details
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.
A memory exhaustion vulnerability has been identified in the libssh library, specifically in its key exchange (KEX) handling. When an authenticated client repeatedly sends incorrect KEX guesses, libssh allocates new ephemeral key pairs without releasing the old ones. This memory leak can gradually deplete system resources, leading to crashes and instability on the client side, especially when libgcrypt is in use. The issue affects several KEX algorithms and is present in libssh versions 0.6.0 and later.
Users are advised to apply updated libssh packages once available to prevent memory exhaustion risks on client systems.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 9, 2025CISA-ADP
Assessed Sep 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:18683 | [email protected] | |
| https://access.redhat.com/security/cve/CVE-2025-8277 | [email protected] | AdvisoryRemedyVendor |
| https://bugzilla.redhat.com/show_bug.cgi?id=2383888 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://www.libssh.org/security/advisories/CVE-2025-8277.txt | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libssh | >= 0.6.0 (semver) |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 6, 2026 | CVE Modified | [email protected] |
| Oct 18, 2026 | CVE Translated | [email protected] |
| Sep 1, 2026 | CVE Modified | [email protected] |
| Aug 31, 2026 | CVE Modified | [email protected] |
| Aug 21, 2026 | CVE Modified | [email protected] |
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 25, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 19, 2026 | CVE Modified | [email protected] |
| May 6, 2026 | CVE Modified | [email protected] |
| Sep 9, 2025 | New CVE Received | [email protected] |
Volerion