CVE-2025-8277
Linux Debian vulnerability analysis and mitigation

Overview

A memory exhaustion vulnerability (CVE-2025-8277) was discovered in libssh's key exchange (KEX) handling mechanism. The vulnerability affects libssh versions 0.6.0 and later, identified in September 2025. The flaw exists in the library's handling of key exchange processes when clients repeatedly send incorrect KEX guesses (Red Hat CVE, Red Hat Bugzilla).

Technical details

The vulnerability occurs when an authenticated client repeatedly performs rekeying with incorrect firstkexpacketfollows guesses. During these operations, libssh allocates new ephemeral key pairs without properly freeing old ones stored in session->nextcrypto. This flaw affects multiple KEX algorithms including Curve25519, ECDH, sntrup761x25519, and DH-GEX across various crypto backends (libgcrypt, OpenSSL, mbedTLS). The vulnerability has been assigned a CVSS v3.1 base score of 3.1 (Low) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L (NVD).

Impact

The vulnerability can lead to gradual memory exhaustion on the client side, potentially resulting in system crashes, particularly when using libgcrypt. This impacts application stability and availability. The issue specifically affects the client side and does not impact server operations (Red Hat CVE).

Mitigation and workarounds

The vulnerability has been reported and is currently being tracked. System administrators and developers using libssh should monitor for updates and patches from their respective vendors. The issue has been assigned CWE-401 (Missing Release of Memory after Effective Lifetime) (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-9943CRITICAL9.1
  • Linux DebianLinux Debian
  • shibboleth-sp
NoYesSep 10, 2025
CVE-2025-7709MEDIUM6.9
  • Linux DebianLinux Debian
  • sqlite3
NoNoSep 08, 2025
CVE-2025-9714MEDIUM6.2
  • Linux DebianLinux Debian
  • libxml2-static
NoYesSep 10, 2025
CVE-2025-40929MEDIUM5.6
  • Linux DebianLinux Debian
  • perl-cpanel-json-xs
NoYesSep 08, 2025
CVE-2025-8277LOW3.1
  • Linux DebianLinux Debian
  • libssh2-devel
NoNoSep 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management