Return of Wrong Status Code Affecting libssh package, versions <0:0.10.4-17.el9_7


Severity

Recommended
medium

Based on Oracle Linux security rating.

Threat Intelligence

EPSS
1.49% (72nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ORACLE9-LIBSSH-14528104
  • published19 Dec 2025
  • disclosed7 Jul 2025

Introduced: 7 Jul 2025

CVE-2025-5987  (opens in a new tab)
CWE-393  (opens in a new tab)

How to fix?

Upgrade Oracle:9 libssh to version 0:0.10.4-17.el9_7 or higher.
This issue was patched in ELSA-2025-23483.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libssh package and not the libssh package as distributed by Oracle. See How to fix? for Oracle:9 relevant fixed versions and status.

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 Base Scores

version 3.1