Skip to main content
← All vulnerabilities
CVE-2025-5987

Libssh: invalid return code for chacha20 poly1305 with openssl backend

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.11.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • libssh

    From 0.10.0 · fixed in 0.11.2

  • libssh

    Version range not reported

  • libssh

    Version range not reported

  • libssh

    Version range not reported

  • libssh

    Version range not reported

  • libssh

    Version range not reported

  • libssh

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • libssh2

    Version range not reported

  • libssh2

    Version range not reported

  • libssh

    Version range not reported

  • openshift/ose-rhel-coreos-8

    Version range not reported

References 17

access.redhat.com

bugzilla.redhat.com

libssh.org