Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-5987— Libssh: invalid return code for chacha20 poly1305 with openssl backend

Quick assessment

Affected
CVE-2025-5987
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

libssh是libssh组织的一个用于访问SSH服务的C语言开发包,它能够执行远程命令、文件传输,同时为远程的程序提供安全的传输通道。 libssh存在安全漏洞,该漏洞源于使用ChaCha20密码时未检测堆空间耗尽错误,可能导致数据机密性和完整性受损。

CVSS 8.1 · High EPSS 1.61% · P75

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 20

VendorProduct Version RangeStatus
None None 0.10.0< 0.11.2 affected
Red Hat Red Hat Enterprise Linux 10 0:0.11.1-5.el10_1< * unaffected
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support 0:0.11.1-4.el10_0.1< * unaffected
Red Hat Red Hat Enterprise Linux 6 any unknown
Red Hat Red Hat Enterprise Linux 7 any unknown
Red Hat Red Hat Enterprise Linux 8 any unaffected
Red Hat Red Hat Enterprise Linux 9 0:0.10.4-17.el9_7< * unaffected
0:0.10.4-17.el9_7< * unaffected
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 0:0.10.4-9.el9_2.2< * unaffected
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support 0:0.10.4-13.el9_4.2< * unaffected
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support 0:0.10.4-15.el9_6.1< * unaffected
Red Hat Red Hat OpenShift Container Platform 4 any affected
Red Hat Red Hat OpenShift Container Platform 4.13 413.92.202602240113-0< * unaffected
Red Hat Red Hat OpenShift Container Platform 4.14 414.92.202601191325-0< * unaffected
Red Hat Red Hat OpenShift Container Platform 4.15 415.92.202601271320-0< * unaffected
Red Hat Red Hat OpenShift Container Platform 4.16 416.94.202601160124-0< * unaffected
Red Hat Red Hat OpenShift Container Platform 4.17 417.94.202601120213-0< * unaffected
Red Hat Red Hat OpenShift Container Platform 4.18 418.94.202601202224-0< * unaffected
Red Hat Red Hat OpenShift Container Platform 4.19 4.19.9.6.202601260820-0< * unaffected
Red Hat Red Hat OpenShift Container Platform 4.20 4.20.9.6.202601211057-0< * unaffected

I. Basic Information for CVE-2025-5987

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Libssh: invalid return code for chacha20 poly1305 with openssl backend
Source: CVE Program / CVE List V5
Vulnerability 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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
返回错误的状态编码
Source: CVE Program / CVE List V5
Vulnerability Title
libssh 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
libssh是libssh组织的一个用于访问SSH服务的C语言开发包,它能够执行远程命令、文件传输,同时为远程的程序提供安全的传输通道。 libssh存在安全漏洞,该漏洞源于使用ChaCha20密码时未检测堆空间耗尽错误,可能导致数据机密性和完整性受损。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
- - 0.10.0 ~ 0.11.2 -
Red Hat Red Hat Enterprise Linux 10 0:0.11.1-5.el10_1 ~ * cpe:/o:redhat:enterprise_linux:10.1
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support 0:0.11.1-4.el10_0.1 ~ * cpe:/o:redhat:enterprise_linux_eus:10.0
Red Hat Red Hat Enterprise Linux 9 0:0.10.4-17.el9_7 ~ * cpe:/a:redhat:enterprise_linux:9::appstream
Red Hat Red Hat Enterprise Linux 9 0:0.10.4-17.el9_7 ~ * cpe:/a:redhat:enterprise_linux:9::appstream
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 0:0.10.4-9.el9_2.2 ~ * cpe:/a:redhat:rhel_e4s:9.2::appstream
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support 0:0.10.4-13.el9_4.2 ~ * cpe:/a:redhat:rhel_eus:9.4::appstream
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support 0:0.10.4-15.el9_6.1 ~ * cpe:/a:redhat:rhel_eus:9.6::appstream
Red Hat Red Hat OpenShift Container Platform 4.13 413.92.202602240113-0 ~ * cpe:/a:redhat:openshift:4.13::el9
Red Hat Red Hat OpenShift Container Platform 4.14 414.92.202601191325-0 ~ * cpe:/a:redhat:openshift:4.14::el9
Red Hat Red Hat OpenShift Container Platform 4.15 415.92.202601271320-0 ~ * cpe:/a:redhat:openshift:4.15::el9
Red Hat Red Hat OpenShift Container Platform 4.16 416.94.202601160124-0 ~ * cpe:/a:redhat:openshift:4.16::el9
Red Hat Red Hat OpenShift Container Platform 4.17 417.94.202601120213-0 ~ * cpe:/a:redhat:openshift:4.17::el9
Red Hat Red Hat OpenShift Container Platform 4.18 418.94.202601202224-0 ~ * cpe:/a:redhat:openshift:4.18::el9
Red Hat Red Hat OpenShift Container Platform 4.19 4.19.9.6.202601260820-0 ~ * cpe:/a:redhat:openshift:4.19::el9
Red Hat Red Hat OpenShift Container Platform 4.20 4.20.9.6.202601211057-0 ~ * cpe:/a:redhat:openshift:4.20::el9
Red Hat Red Hat Enterprise Linux 6 - cpe:/o:redhat:enterprise_linux:6
Red Hat Red Hat Enterprise Linux 7 - cpe:/o:redhat:enterprise_linux:7
Red Hat Red Hat Enterprise Linux 8 - cpe:/o:redhat:enterprise_linux:8
Red Hat Red Hat OpenShift Container Platform 4 - cpe:/a:redhat:openshift:4

II. Public POCs for CVE-2025-5987

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-5987

请登录查看更多情报信息。

Vendor Advisories for CVE-2025-5987 (11)

IV. Related Vulnerabilities

V. Comments for CVE-2025-5987

No comments yet


Leave a comment