HomeLibsshCVE-2025-5987

CVE-2025-5987

HIGH
8.1CVSS
Published: 2025-07-07
Updated: 2026-02-05
AI Analysis

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

Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
network
Complexity
high
Privileges
none
User Action
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
high
Weaknesses
CWE-393

Metadata

Primary Vendor
LIBSSH
Published
7/7/2025
Last Modified
2/5/2026
Source
NIST NVD
Note: Verify all details with official vendor sources before applying patches.

Affected Products

libssh : libssh

AI-Powered Remediation

Generate remediation guidance or a C-suite brief for this vulnerability.

Executive Intelligence Brief

CVE-CVE-2025-5987 | HIGH Severity | CVEDatabase.com | CVEDatabase.com