CyberSecBulletin
CVE-2025-5987NVD status: Modified

Red Hat Enterprise Linux 10: Return of Wrong Status Code

CVE-2025-5987 is a high-severity return of wrong status code vulnerability in Red Hat Enterprise Linux 10 from Red Hat, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 1.73% chance of exploitation within 30 days, higher than 78% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Libssh to 0.11.2 or a later version.
  2. Read the advisory on libssh.org for workarounds and exact fixed builds.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
Red HatRed Hat Enterprise Linux 10Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 10.0 Extended Update SupportNot specified in the recordNot stated
Red HatRed Hat Enterprise Linux 9Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP SolutionsNot specified in the recordNot stated
Red HatRed Hat Enterprise Linux 9.4 Extended Update SupportNot specified in the recordNot stated
Red HatRed Hat Enterprise Linux 9.6 Extended Update SupportNot specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.13Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.14Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.15Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.16Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.17Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.18Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.19Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.20Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 6Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 7Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 8Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4Not specified in the recordNot stated
LibsshLibssh0.10.0 up to, but not including, 0.11.20.11.2

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
HighSuccess depends on conditions outside the attacker's control.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.18.1HighCNA (redhat.com)
CVSS 3.18.1HighNVD

Official description

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.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Return of Wrong Status Code

A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.

More Return of Wrong Status Code vulnerabilities (CWE-393)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in Red Hat Enterprise Linux 10

All Red Hat Enterprise Linux 10 vulnerabilities

Spotted an error? Tell us.