Vulnerabilities

Vulnerability · CVE-2025-5987

A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library.

Published Jul 7, 2025 · catalog updated Oct 16, 2026 · Red Hat Red Hat OpenShift Container Platform 4.20

Check if you run it

No confirmed exploitation is on record for CVE-2025-5987. EPSS is 1.73%. Act only if a listed version of Red Hat Red Hat OpenShift Container Platform 4.20 is installed.

Gaps on this record

  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
High8.1
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
1.73%
Remediation
Vendor / distro source
Affected products
cpe libssh/libssh · vendor Red Hat Red Hat OpenShift Container Platform 4.20 patch: 4.20.9.6.202601211057-0

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe libssh/libsshversion unspecified
  • vendor Red Hat Red Hat OpenShift Container Platform 4.20 patch: 4.20.9.6.202601211057-0patch: 4.20.9.6.202601211057-0

How to fix CVE-2025-5987

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2025-5987. EPSS is 1.73%. Act only if a listed version of Red Hat Red Hat OpenShift Container Platform 4.20 is installed.

Which versions are affected?

Compare what you have installed with Red Hat Red Hat OpenShift Container Platform 4.20 patch: 4.20.9.6.202601211057-0 patch: 4.20.9.6.202601211057-0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-393. EPSS 1.73%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Technology hubs

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Jul 7, 2025 · NIST NVD

    Detected

    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. Th

  2. Oct 16, 2026 · NIST NVD

    Updated

    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. Th

Sources

  • CVE.orgVulnerability recordCVE-2025-5987

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2025-5987

    30-day exploitation probability 1.7%

    first.org
  • EUVDVulnerability recordEUVD-2025-20227

    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 returne

    euvd.enisa.europa.eu
  • NIST NVDVulnerability recordCVE-2025-5987

    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 returne

    nvd.nist.gov

References

Freshness

Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.