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

Libssh: incorrect return code handling in ssh_kdf() in libssh

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: partial

Summary

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • libssh

    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

  • libssh

    Version range not reported

  • libssh

    Version range not reported

  • libssh

    Version range not reported

  • libssh

    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

  • openshift/ose-rhel-coreos-9

    Version range not reported

References 7

access.redhat.com

bugzilla.redhat.com