Skip to main content
Network Thinking Solutions Logo

CVE-2025-5372

Libssh: incorrect return code handling in ssh_kdf() in libssh

All CVEs
CVE-2025-5372Published 7/4/2025

Libssh: incorrect return code handling in ssh_kdf() in libssh

Vendor advisory
CVSS 3.15.0Medium

Overview

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.

Published
7/4/2025
Last modified
11/26/2026
CVE assigner
redhat
NVD analysis
Modified

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
libssh
libssh
< 0.11.2

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

access.redhat.com/errata/RHSA-2025:21977vendor-advisory · x_refsource_REDHAT
access.redhat.com/errata/RHSA-2025:23024vendor-advisory · x_refsource_REDHAT
access.redhat.com/errata/RHSA-2026:20610vendor-advisory · x_refsource_REDHAT
access.redhat.com/errata/RHSA-2026:24349vendor-advisory · x_refsource_REDHAT
access.redhat.com/errata/RHSA-2026:25911vendor-advisory · x_refsource_REDHAT

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

5.0 · Medium CVSS 3.1

Scored by redhat

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

5.0 · Medium CVSS 3.1

Scored by secalert@redhat.com

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

8.8 · High CVSS 3.1

Scored by nvd@nist.gov

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

Related weaknesses

Sources & references

access.redhat.com/errata/RHSA-2025:21977
vendor-advisory
x_refsource_REDHAT
access.redhat.com/errata/RHSA-2025:23024
vendor-advisory
x_refsource_REDHAT
access.redhat.com/errata/RHSA-2026:20610
vendor-advisory
x_refsource_REDHAT
access.redhat.com/errata/RHSA-2026:24349
vendor-advisory
x_refsource_REDHAT
access.redhat.com/errata/RHSA-2026:25911
vendor-advisory
x_refsource_REDHAT
access.redhat.com/security/cve/CVE-2025-5372
vdb-entry
x_refsource_REDHAT
Third Party Advisory
bugzilla.redhat.com/show_bug.cgi?id=2369388
issue-tracking
x_refsource_REDHAT
Issue Tracking
Third Party Advisory

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.