Back to CVE records
High 8.1Published Jul 7, 2025

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

Updated under an hour ago ()

Does this affect you?

It affects Red Hat Enterprise Linux 10 and 5 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
8.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-393
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
redhat
NVD analysis
Modified
Record last updated
Oct 16, 2026
First seen by InfoSec Signals
Oct 16, 2026

Affected products

Affected products
from 0:0.11.1-5.el10_1 not affected
CNA record
from 0:0.11.1-4.el10_0.1 not affected
CNA record
from 0:0.10.4-9.el9_2.2 not affected
CNA record
from 0:0.10.4-13.el9_4.2 not affected
CNA record
from 413.92.202602240113-0 not affected
CNA record
libssh libssh
libssh:libssh
from 0.10.0 before 0.11.2
NVD

References

  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vendor-advisory, x-refsource-redhat
  • vdb-entry, x-refsource-redhat, third-party-advisory
  • issue-tracking, x-refsource-redhat, third-party-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.