Live threats

All CVEs / Libssh

CVE-2025-5987Libssh

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
—
Auth required
No
Published
Jul 7, 2025
Updated
Nov 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-393
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libssh.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
libsshlibssh≥ 0.10.0 < 0.11.2

Official advisories

Also: Red Hat (+3)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.