CVE-2025-5987HIGH 8.1EPSS p69.7%

CVE-2025-5987CVE-2025-5987

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.

Scoring

CVSS 3.18.1 (HIGH)
VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS1.44% probability of exploitation · percentile 69.7% · 2026-06-19T12:03:05Z
Published2025-07-07
Last modified2026-03-20

Underlying weaknesses· 1

CWE-393

References

  1. https://access.redhat.com/errata/RHSA-2025:23483
  2. https://access.redhat.com/errata/RHSA-2025:23484
  3. https://access.redhat.com/errata/RHSA-2026:0427
  4. https://access.redhat.com/errata/RHSA-2026:0428
  5. https://access.redhat.com/errata/RHSA-2026:0430
  6. https://access.redhat.com/errata/RHSA-2026:0431
  7. https://access.redhat.com/errata/RHSA-2026:0702
  8. https://access.redhat.com/errata/RHSA-2026:0978

1

TypeTargetConfidenceTier
WeaknessReturn of Wrong Status Codecwe-3930%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2025-5372
CVE
CVE-2025-5318
CVE
CVE-2026-0966
CVE
CVE-2026-5260
CVE
CVE-2025-15382
CVE
CVE-2025-59606
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.