Security mailing lists by PureSourceCode

CVE-2025-5987

HIGH 8.1CVSS 3.1

Libssh: invalid return code for chacha20 poly1305 with openssl backend

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.

Published
7 Jul 2025
Last modified
23 Nov 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-393
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD secalert@redhat.com (Secondary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Secondary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE List redhat CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: total

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD libssh libssh
cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
>= 0.10.0, < 0.11.2 0.11.2
CVE List https://www.libssh.org/ libssh >= 0.10.0, < 0.11.2 0.11.2
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/o:redhat:enterprise_linux:10.1
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/o:redhat:enterprise_linux_eus:10.0
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/a:redhat:enterprise_linux:9::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/a:redhat:rhel_e4s:9.2::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/a:redhat:rhel_eus:9.4::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/a:redhat:rhel_eus:9.6::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.13::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.14::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.15::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.16::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.17::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.18::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.19::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4.20::el9
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh2
cpe:/o:redhat:rhel_els:6
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh2
cpe:/o:redhat:rhel_els:7
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/o:redhat:enterprise_linux:8
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-8
cpe:/a:redhat:openshift:4
all versions

References

History

  • 25 Nov 2026 20:36 UTC · CVE List: first stored (published 7 Jul 2025)
  • 25 Nov 2026 20:10 UTC · NVD: first stored (published 7 Jul 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.