CVE-2025-5987
HIGHEPSS 70th pctlDescription
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.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploit Intelligence
Elevated risk: more likely to be exploited than 70% of all known CVEs.
References
Related Vulnerabilities
Other CWE-393 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2023-37897 | High | 7.2 | 2.8% | - | - |
| CVE-2020-5401 | Medium | 5.3 | 1.0% | - | Fix |
| CVE-2024-49117 | High | 8.8 | 1.0% | - | Fix |
| CVE-2025-32414 | Medium | 5.6 | 0.4% | - | Fix |
| CVE-2026-42246 | High | 7.4 | 0.3% | - | Fix |
| CVE-2026-9058 | Critical | 9.3 | 0.3% | - | - |
Embed a live status badge for CVE-2025-5987
Markdown
[](https://tridentstack.com/cve/CVE-2025-5987)HTML
<a href="https://tridentstack.com/cve/CVE-2025-5987"><img src="https://tridentstack.com/cve/badge/CVE-2025-5987.svg" alt="CVE-2025-5987"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-30.