CVE-2025-5987 in libssh
Exploitation of this CVE does not show up in logs, so there is no detection rule for it.
What the vulnerability is
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.
Affected software: libssh
Scores
- CVSS: 8.1 (high)
- EPSS: 1.80% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2025-07-07
What LogPulse has for it
- Detection rule: No
- Agent check (vulnerable version): No
- Mitigation: No
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.