CVE-2025-5987 Details
Description
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.
A vulnerability exists in libssh when the ChaCha20 cipher is used with the OpenSSL library. The issue arises if an attacker exhausts the heap space, leading to libssh potentially using a cipher context that is only partially initialized. This problem occurs because the OpenSSL error code indicating a failure is misinterpreted as a success, causing libssh to overlook the error. As a result, this vulnerability can lead to undefined behavior, such as compromising data confidentiality and integrity or causing crashes.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-393 | Return of Wrong Status Code | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libssh libssh | >= 0.10.0, < 0.11.2 |
CPE
Remediation
| |
Change History
23 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | [email protected] |
| Oct 16, 2026 | CVE Modified | [email protected] |
| Aug 31, 2026 | CVE Modified | [email protected] |
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 25, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 20, 2026 | CVE Modified | [email protected] |
| Mar 5, 2026 | CVE Modified | [email protected] |
| Feb 5, 2026 | CVE Modified | [email protected] |
| Feb 4, 2026 | CVE Modified | [email protected] |
| Feb 3, 2026 | CVE Modified | [email protected] |
| Jan 30, 2026 | CVE Modified | [email protected] |
| Jan 30, 2026 | CVE Modified | [email protected] |
| Jan 27, 2026 | CVE Modified | [email protected] |
| Jan 22, 2026 | CVE Modified | [email protected] |
| Jan 13, 2026 | CVE Modified | [email protected] |
| Jan 8, 2026 | CVE Modified | [email protected] |
| Dec 18, 2025 | CVE Modified | [email protected] |
| Dec 17, 2025 | CVE Modified | [email protected] |
| Nov 28, 2025 | Modified Analysis | [email protected] |
| Aug 22, 2025 | Initial Analysis | [email protected] |
| Jul 7, 2025 | New CVE Received | [email protected] |