CVE-2025-5987
Last modified
CVE-2025-5987 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 1.44% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Libssh | Libssh | >= 0.10.0, < 0.11.2 |
References
- https://access.redhat.com/security/cve/CVE-2025-5987Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2376219Issue Tracking, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-5987?
How severe is CVE-2025-5987?
How do I fix CVE-2025-5987?
Are you affected by CVE-2025-5987?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
