8.8

CVE-2025-5372: Libssh: incorrect return code handling in ssh_kdf() in libssh

Modified
AliasesRHSA-2025:21977RHSA-2025:23024RHSA-2026:20610
Published 04-07-2025Last modified 26-11-2026

Vulnerability summary

CVE-2025-5372 is a high (CVSS 8.8) Incorrect Calculation vulnerability in libssh. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 54.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.70%
0%100%
Low · +0.20 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 10 · Related 8

Timeline

  1. 04-07-2025
    PublishedVulnerability first disclosed.
  2. 26-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.70%

Chance of exploitation in the next 30 days

Percentile

55%

Versus all other CVEs

30-day change

Increase +0.20 pp

From 0.50% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat7 products
  • enterprise_linuxEOL6.0 | 7.0 | 8.0 | 9.0 | 10.0
  • openshift_container_platform4.0
  • libssh< 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-4.el8_6.2
  • libssh-config< 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-4.el8_6.2
  • libssh-debuginfo< 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-4.el8_6.2
Alpine1 product
  • libssh< 0.11.2-r0
Debian1 product
  • libssh< 0.10.6-0+deb12u2 | < 0.11.2-1
Libssh1 product
Ubuntu1 product
  • libsshAll versions (No fix recorded) | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1

5 vendors · 11 products

References

20 links
Show all 20 references