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
libsshRocky
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-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.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-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-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
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libsshRed Hat / RHEL
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-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-13.el8_8.2RHSA-2026:20610
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-4.el8_6.2RHSA-2026:25911
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-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
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.4-2.el8_4.2RHSA-2026:24349
Fixed in:0:0.9.6-16.el8_10RHSA-2025:21977
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-configRocky
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-4.el8_6.2RHSA-2026:25911
Fixed in:0:0.9.6-3.el9_0.2RHSA-2025:23024
libssh-debuginfoRocky
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-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-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.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
libssh-debuginfoRed Hat / RHEL
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-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-16.el8_10RHSA-2025:21977
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.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-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.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-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-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-debugsourceRocky
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-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-16.el8_10RHSA-2025:21977
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-4.el8_6.2RHSA-2026:25911
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.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-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-develRed Hat / RHEL
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-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.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
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

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

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.42%probability of exploitation in 30 days
34thpercentile

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

References

Related Vulnerabilities

Other CWE-682 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-30780High7.556%-Fix
CVE-2020-14422Medium5.913%-Fix
CVE-2016-7433Medium5.39.8%-Fix
CVE-2023-35641High8.87.2%-Fix
CVE-2018-8319Critical9.87.0%--
CVE-2020-0022High8.86.1%-Fix

Common questions

How do I fix CVE-2025-5372?

Published advisories record a fix for 13 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2025-5372 being actively exploited?

Not that we know of. CVE-2025-5372 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.42% is the estimated probability that it will be exploited in the next 30 days. That is higher than 34% of all scored CVEs.

How severe is CVE-2025-5372?

CVE-2025-5372 has a CVSS v3 base score of 5.0, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2025-5372 affect?

Published advisories record a fix for libssh (Debian), libssh (Rocky), libssh (Red Hat / RHEL), libssh-config (Red Hat / RHEL), and 9 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

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.

See how it worksStart freeThis CVE lookup is free and always will be.

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.