CVE-2025-8277

Libssh: memory exhaustion via repeated key exchange in libssh

At a glance

Severity
LOW 3.1
EPSS
EPSS 0.43 % · percentile 37 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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

VersionScoreVectorScored by
CVSS 3.1LOW 3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:Lredhat
CVSS 3.1LOW 3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:LNVD · secalert@redhat.com (Secondary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected products

ProductVersions
libsshaffected 0.6.0 < 0.11.3
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-18.el9 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-18.el9 < *
Red Hat · Red Hat Enterprise Linux 10
Red Hat · Red Hat Enterprise Linux 6
Red Hat · Red Hat Enterprise Linux 7
Red Hat · Red Hat Enterprise Linux 8
Red Hat · Red Hat OpenShift Container Platform 4
Red Hat · Red Hat OpenShift Container Platform 4

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD