CVE-2025-5987
Last modified
CVE-2025-5987 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 1.44% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Libssh | Libssh | >= 0.10.0, < 0.11.2 |
References
- https://access.redhat.com/security/cve/CVE-2025-5987Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2376219Issue Tracking, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-5987?
How severe is CVE-2025-5987?
How do I fix CVE-2025-5987?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-59852HCL DFXAnalytics is affected by an Insufficient Transport …9.1
- CVE-2025-59853HCL DFXAnalytics is affected by an Improper Error Handling v…5.3
- CVE-2025-59854HCL DFXAnalytics is affected by an Insecure Security Header …6.1
- CVE-2025-5986A crafted HTML email using mailbox:/// links can trigger aut…6.5
- CVE-2025-59866The HCL DFMPro, DFXAnalytics and DFXServer installers are af…3.3
- CVE-2025-59868HCL Traveler for Microsoft Outlook (HTMO) is susceptible to …5.5
- CVE-2025-59870HCL MyXalytics is affected by improper management of a stat…9.8
- CVE-2025-59872HCL ZIE for Web is affetced by an Unrestricted File Upload v…9.8
- CVE-2025-59873An information exposure vulnerability exists in Vulnerabili…5.9
- CVE-2025-59874HCL Hive Telco Observability is affected by a Required dire…8.1
- CVE-2025-59876Rejected reason: Not used
- CVE-2025-59877Rejected reason: Not used
Are you affected by CVE-2025-5987?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
