VDB

CVE-2025-8277

CVE-2025-8277 PUBLISHED CVSS 3.1 LOW

Libssh: memory exhaustion via repeated key exchange in libssh

Reported by redhat · Published September 9, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
libssh-debugsourceerrata.rockylinux.org0.10.4-18.el9.x86, 0.10.4-18.el9.s390x, 0.10.4-18.el9.ppc64le, 0.10.4-18.el9.i686, 0.10.4-18.el9.aarch64
libssh-develerrata.rockylinux.org0.10.4-18.el9.x86, 0.10.4-18.el9.s390x, 0.10.4-18.el9.ppc64le, 0.10.4-18.el9.i686, 0.10.4-18.el9.aarch64
libssh-debuginfoerrata.rockylinux.org0.10.4-18.el9.x86, 0.10.4-18.el9.s390x, 0.10.4-18.el9.ppc64le, 0.10.4-18.el9.i686, 0.10.4-18.el9.aarch64
libssherrata.rockylinux.org0.10.4-18.el9.x86, 0.10.4-18.el9.src, 0.10.4-18.el9.s390x, 0.10.4-18.el9.ppc64le, 0.10.4-18.el9.i686, 0.10.4-18.el9.aarch64
libssh-configerrata.rockylinux.org0.10.4-18.el9.noarch
libsshAmazon Linux0.10.6-1.amzn2023.0.3
libsshwww.libssh.org0.11.3
libssh-configAmazon Linux0.10.6-1.amzn2023.0.3
libssh-develAmazon Linux0.10.6-1.amzn2023.0.3

Risk scores

CVSS 3.1
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
0.6.0
Red HatRed Hat Enterprise Linux 90:0.10.4-18.el9
Red HatRed Hat Enterprise Linux 90:0.10.4-18.el9
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat Enterprise Linux 7
amazon:2023libssh0
Red HatRed Hat Enterprise Linux 90:0.10.4-18.el9
Red HatRed Hat In-Vehicle Operating System 1
0.6.0
Red HatRed Hat Enterprise Linux 10
amazon:2023libssh-config0
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat Enterprise Linux 8

…and 2 more

Timeline

  • Sep 9, 2025 EPSS Score (30 in total, the first dated here)
  • Sep 9, 2025 CVE Published
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • May 29, 2026 Distribution Patch (4 in total, the first dated here)
  • May 29, 2026 Security Advisory (7 in total, the first dated here)
  • Oct 4, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-8277
vulnetix vdb fixes CVE-2025-8277

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-8277/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›