8.1

CVE-2025-5987: libssh Return of Wrong Status Code

CVSS: 8.1v3.1HighModified
AliasesRHSA-2025:23483RHSA-2025:23484RHSA-2026:0427
Published 07-07-2025Last modified 16-10-2026

Vulnerability summary

CVE-2025-5987 is a high (CVSS 8.1) Return of Wrong Status Code vulnerability in libssh. EPSS estimates a 1.73% chance of exploitation in the next 30 days, higher than 77.2% of scored vulnerabilities.

Overall risk
33/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.1/10
010
High · v3.1 (CVE.org)
EPSS score
1.73%
0%100%
Low · +0.24 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 6

Timeline

  1. 07-07-2025
    PublishedVulnerability first disclosed.
  2. 16-10-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

1.73%

Chance of exploitation in the next 30 days

Percentile

77%

Versus all other CVEs

30-day change

+0.24 pp

From 1.49% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.73%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Redhat5 products
  • libssh< 0:0.10.4-17.el9_7 | < 0:0.11.1-5.el10_1 | < 0:0.11.1-4.el10_0.1 | < 0:0.10.4-15.el9_6.1 | < 0:0.10.4-9.el9_2.2 | < 0:0.10.4-13.el9_4.2
  • libssh-config< 0:0.10.4-17.el9_7 | < 0:0.11.1-5.el10_1
  • libssh-debuginfo< 0:0.10.4-17.el9_7 | < 0:0.11.1-5.el10_1
  • libssh-debugsource< 0:0.10.4-17.el9_7 | < 0:0.11.1-5.el10_1
  • libssh-devel< 0:0.10.4-17.el9_7 | < 0:0.11.1-5.el10_1
Chainguard2 products
  • libssh< 0.11.3-r0
  • libssh2< 1.11.1-r1
Wolfi2 products
  • libssh< 0.11.3-r0
  • libssh2< 1.11.1-r1
Debian1 product
  • libssh< 0.10.6-0+deb12u2 | < 0.11.2-1
Libssh1 product
Ubuntu1 product
  • libssh< 0.10.6-2ubuntu0.1

6 vendors · 12 products

References

33 links
Show all 33 references