Skip to content
Sign in
CVE-2025-59878.1HighCWE-393

CVE-2025-5987: Libssh: invalid return code for chacha20 poly1305 with openssl backend

Redhat · libssh

Vendor fix available · Affected: Redhat libssh · Exploitation: possible (1 to 10%)

Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.

1.7%probability of exploitation in the next 30 days
77th percentile
050100

Higher than 77% of scored CVEs

8.1HighCVSS 3.1
LowHigh

DescriptionCVE.org

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 products20

From the CVE record. A product or version that is not listed is unknown, not unaffected.

  • libsshfrom 0.10.0 before 0.11.2
  • Red Hat · Red Hat Enterprise Linux 10Versions not stated
  • Red Hat · Red Hat Enterprise Linux 10.0 Extended Update SupportVersions not stated
  • Red Hat · Red Hat Enterprise Linux 9Versions not stated
  • Red Hat · Red Hat Enterprise Linux 9Versions not stated
  • Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsVersions not stated
  • Red Hat · Red Hat Enterprise Linux 9.4 Extended Update SupportVersions not stated
  • Red Hat · Red Hat Enterprise Linux 9.6 Extended Update SupportVersions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.13Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.14Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.15Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.16Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.17Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.18Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.19Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4.20Versions not stated
  • Red Hat · Red Hat Enterprise Linux 6Versions not stated
  • Red Hat · Red Hat Enterprise Linux 7Versions not stated
  • Red Hat · Red Hat Enterprise Linux 8Versions not stated
  • Red Hat · Red Hat OpenShift Container Platform 4Versions not stated

On the Atlas

Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.

Open the Atlas
Exploitation
Possible (1 to 10%). EPSS between 1% and 10%.
CISA KEV
Not listed
Public check
No public nuclei template
Vendor
Redhat
Published
July 2025

CoverageNo articles yet

No CyberSIXT article names CVE-2025-5987 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.

References

5 more references are in the CVE record.

Updated AboutDevelopersSign in