A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.
CVE-2025-5987
Score 5.0 from GitHub Security Advisory published 2025-07-07. NVD baseline CVSS 8.1; sources differ by 3.1.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.1
- EG Score
- 5.0(medium)
- EPSS
- 70.2%
- KEV
- Not listed
Published
July 7, 2025
Last Modified
June 30, 2026
Advisory Details (10)
Auto-updated Jun 25, 2026Affected: Red Hat Enterprise Linux 9.4 Extended Update Support.
https://access.redhat.com/errata/RHSA-2026:0431Affected: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions.
https://access.redhat.com/errata/RHSA-2026:0430Affected: Red Hat Enterprise Linux 9.6 Extended Update Support.
https://access.redhat.com/errata/RHSA-2026:0428Affected: Red Hat Enterprise Linux 10.0 Extended Update Support.
https://access.redhat.com/errata/RHSA-2026:0427Affected: Red Hat Enterprise Linux 10.
https://access.redhat.com/errata/RHSA-2025:23484Affected: Red Hat Enterprise Linux 9.
https://access.redhat.com/errata/RHSA-2025:23483Vendor Advisories for CVE-2025-5987(8)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:3415Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.13.64 bug fix and security update
- RHSA-2026:1541Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.15.61 bug fix and security update
- RHSA-2026:1539Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.19.23 bug fix and security update
- RHSA-2026:0980Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.18.32 bug fix and security update
- RHSA-2026:0996Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.14.61 bug fix and security update
- RHSA-2026:0985Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.16.56 bug fix and security update
- RHSA-2026:0978Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.20.12 bug fix and security update
- RHSA-2026:0702Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.17.47 bug fix and security update
Patch Availability(15)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | libssh-gcrypt-dev (0.10.6-3ubuntu1.1) @ oracular | 2026-05-30 | ubuntu |
| redhat | rhcos-413.92.202602240113-0 | 2026-03-05 | redhat |
| redhat | rhcos-415.92.202601271320-0 | 2026-02-05 | redhat |
| redhat | rhcos-4.19.9.6.202601260820-0 | 2026-02-04 | redhat |
| redhat | rhcos-418.94.202601202224-0 | 2026-02-03 | redhat |
| redhat | rhcos-416.94.202601160124-0 | 2026-01-30 | redhat |
| redhat | rhcos-414.92.202601191325-0 | 2026-01-30 | redhat |
| redhat | rhcos-4.20.9.6.202601211057-0 | 2026-01-27 | redhat |
| redhat | rhcos-417.94.202601120213-0 | 2026-01-22 | redhat |
| redhat | libssh-0:0.10.4-15.el9_6.1 | 2026-01-12 | redhat |
| redhat | libssh-0:0.10.4-9.el9_2.2 | 2026-01-12 | redhat |
| redhat | libssh-0:0.10.4-13.el9_4.2 | 2026-01-12 | redhat |
| redhat | libssh-0:0.11.1-4.el10_0.1 | 2026-01-12 | redhat |
| redhat | libssh-0:0.10.4-17.el9_7 | 2025-12-18 | redhat |
| redhat | libssh-0:0.11.1-5.el10_1 | 2025-12-17 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(8)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2025-59872025-07-17
Libssh: invalid return code for chacha20 poly1305 with openssl backend
- Red HatRHSA-2025:23483MODERATE2025-04-26
RHSA-2025:23483 — Moderate
- Red HatRHSA-2025:23484MODERATE2025-04-26
RHSA-2025:23484 — Moderate
- Red HatRHSA-2026:0427MODERATE2025-04-26
RHSA-2026:0427 — Moderate
- Red HatRHSA-2026:0428MODERATE2025-04-26
RHSA-2026:0428 — Moderate
- Red HatRHSA-2026:0430MODERATE2025-04-26
RHSA-2026:0430 — Moderate
- Red HatRHSA-2026:0431MODERATE2025-04-26
RHSA-2026:0431 — Moderate
- UbuntuUSN-7619-1MEDIUM
libssh vulnerabilities
Data Freshness Timeline
(refreshed 9× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-13 22:29 UTCEPSS rescore
- 2026-07-13 06:12 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-06 19:37 UTCOSV refresh
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
Show 54 moreShow fewer
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 08:14 UTCOSV refresh
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-30 02:32 UTCEG score recompute
- 2026-05-30 02:32 UTCVendor advisory
- 2026-05-30 02:32 UTCGHSA enrichment
- 2026-05-30 01:35 UTCOSV refresh
- 2026-05-29 13:44 UTCEPSS rescore
Frequently asked(5)
What is CVE-2025-5987?
When was CVE-2025-5987 disclosed?
Is CVE-2025-5987 actively exploited?
What is the CVSS score of CVE-2025-5987?
How do I remediate CVE-2025-5987?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2025-5987
Is Your Infrastructure Affected by CVE-2025-5987?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.