CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2025 · Libssh

CVE-2025-5987
Libssh vulnerability

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 products

Libssh. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Libssh runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Libssh products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.