CVE & CISA-KEV Catalog

CVE-2025-5372

MEDIUM
5.0
CVSS v3
NVD

Description

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

How to fix

Remediation Available
libsshDebian
Fixed in:0.9.8-0+deb11u2CVE-2025-5372
Fixed in:0.10.6-0+deb12u2CVE-2025-5372
Fixed in:0.11.2-1CVE-2025-5372
Fixed in:0.11.2-1CVE-2025-5372
libsshRed Hat / RHEL
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libsshRocky
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-configRocky
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-configRed Hat / RHEL
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-debuginfoRocky
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-debuginfoRed Hat / RHEL
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-debugsourceRocky
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-debugsourceRed Hat / RHEL
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-develRed Hat / RHEL
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-develRocky
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-13.el8_8.2RHSA-2026:20610
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libsshUbuntu
Fixed in:0.9.6-2ubuntu0.22.04.4USN-7619-1
Fixed in:0.10.6-2ubuntu0.1USN-7619-1
libssh-4Ubuntu
Fixed in:0.9.6-2ubuntu0.22.04.4USN-7619-1
Fixed in:0.10.6-2ubuntu0.1USN-7619-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploit Intelligence

0.41%probability of exploitation in 30 days
33rdpercentile

Low risk: more likely to be exploited than 33% of all known CVEs.

References

Embed a live status badge for CVE-2025-5372
CVE-2025-5372 severity badge

Markdown

[![CVE-2025-5372](https://tridentstack.com/cve/badge/CVE-2025-5372.svg)](https://tridentstack.com/cve/CVE-2025-5372)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-5372"><img src="https://tridentstack.com/cve/badge/CVE-2025-5372.svg" alt="CVE-2025-5372"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-15.