CVE-2025-8277
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libssh-debugsource | errata.rockylinux.org | 0.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-devel | errata.rockylinux.org | 0.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-debuginfo | errata.rockylinux.org | 0.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 | errata.rockylinux.org | 0.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-config | errata.rockylinux.org | 0.10.4-18.el9.noarch |
| libssh | Amazon Linux | 0.10.6-1.amzn2023.0.3 |
| libssh | www.libssh.org | 0.11.3 |
| libssh-config | Amazon Linux | 0.10.6-1.amzn2023.0.3 |
| libssh-devel | Amazon Linux | 0.10.6-1.amzn2023.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0.6.0 | ||
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-18.el9 |
| Red Hat | Red Hat Enterprise Linux 9 | 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 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| amazon:2023 | libssh | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-18.el9 |
| Red Hat | Red Hat In-Vehicle Operating System 1 | |
| 0.6.0 | ||
| Red Hat | Red Hat Enterprise Linux 10 | |
| amazon:2023 | libssh-config | 0 |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red 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
- RHSA-2026:18683 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2383888 issue-trackingx_refsource_REDHAT