CVE-2025-8277

Libssh: memory exhaustion via repeated key exchange in libssh

State
Published
Severity
3.1 Low
Published
Sep 9, 2025
Updated
Sep 1, 2026
Reserved
Jul 28, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.1 LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:Lredhat

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
libssh
  • 0.6.0 to before 0.11.3Affected
Red Hat Enterprise Linux 9Red Hat
  • 0:0.10.4-18.el9 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:0.10.4-18.el9 and laterNot affected
Red Hat Enterprise Linux 10Red Hat
    Red Hat Enterprise Linux 6Red Hat
      Red Hat Enterprise Linux 7Red Hat
        Red Hat Enterprise Linux 8Red Hat
          Red Hat OpenShift Container Platform 4Red Hat
            Red Hat OpenShift Container Platform 4Red Hat

              References

              Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.