CVEBrief

Home / libssh / libssh / CVE-2025-5372

CVE-2025-5372: is it exploited, and which versions of libssh are affected and fixed?

CVE-2025-5372 is an incorrect calculation vulnerability in libssh. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: libssh before 0.11.2, Red Hat Enterprise Linux 9 all versions (the record names no range) and Red Hat OpenShift Container Platform 4 all versions (the record names no range) (CVE record by redhat). Fixed in 0.11.2, 0:0.9.6-16.el8_10, 0:0.9.4-2.el8_4.2, 0:0.9.6-4.el8_6.2 and 2 more (CVE record by redhat). Severity: Medium (5.0, CVSS 3.1, from redhat).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 28, 2026, 17:54 UTC and NVD November 24, 2026, 12:08 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 10:38 UTC
Affected
libssh before 0.11.2, Red Hat Enterprise Linux 9 all versions (the record names no range) and Red Hat OpenShift Container Platform 4 all versions (the record names no range)
CVE record by redhat
Fixed in
0.11.2, 0:0.9.6-16.el8_10, 0:0.9.4-2.el8_4.2, 0:0.9.6-4.el8_6.2 and 2 more
CVE record by redhat
Severity
Medium 5.0
CVSS 3.1 from redhat
Exploit odds (EPSS)
0.70% in 30 days
higher than 55% of CVEs; FIRST, December 2, 2026

What is CVE-2025-5372?

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

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.

From the CVE record by redhat, last updated November 26, 2026, 04:43 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
libsshlibsshbefore 0.11.20.11.2
Red HatRed Hat Enterprise Linux 8 libsshall versions (default)0:0.9.6-16.el8_10
Red HatRed Hat Enterprise Linux 8 libsshall versions (default)0:0.9.6-16.el8_10
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support libsshall versions (default)0:0.9.4-2.el8_4.2
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On libsshall versions (default)0:0.9.4-2.el8_4.2
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support libsshall versions (default)0:0.9.6-4.el8_6.2
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On libsshall versions (default)0:0.9.6-4.el8_6.2
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service libsshall versions (default)0:0.9.6-13.el8_8.2
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions libsshall versions (default)0:0.9.6-13.el8_8.2
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions libsshall versions (default)0:0.9.6-3.el9_0.2
Red HatRed Hat Enterprise Linux 10 libsshnot stated
Red HatRed Hat Enterprise Linux 6 libssh2not stated
Red HatRed Hat Enterprise Linux 7 libssh2not stated
Red HatRed Hat Enterprise Linux 9 libsshall versions (the record names no range)
Red HatRed Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8all versions (the record names no range)
Red HatRed Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-9not stated

As the CVE record by redhat states it, last updated November 26, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
libsshlibsshbefore 0.11.2application
redhatopenshift container platform4.0application
redhatenterprise linux6.0operating system
redhatenterprise linux7.0operating system
redhatenterprise linux8.0operating system
redhatenterprise linux9.0operating system
redhatenterprise linux10.0operating system

NVD analysis (status Modified), last modified November 24, 2026, 11:17 UTC.

How severe is CVE-2025-5372?

ScoreVersionVectorSource
Medium 5.0CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:Lredhat
High 8.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2025-5372 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, July 8, 2025)
EPSS
0.70% probability of exploitation activity in the next 30 days, percentile 54.6 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Is there a workaround? (from the CVE record)

To mitigate this issue, administrators should ensure that libssh is built against OpenSSL version 3.0 or later. This change eliminates the return code mismatch and prevents the erroneous use of uninitialized key material. It is also strongly recommended to apply vendor supplied patches or update to the latest libssh security release as soon as possible.

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
May 30, 2025
Published
July 4, 2025, 06:01 UTC
CVE record updated
November 26, 2026, 04:43 UTC by redhat
NVD
Modified, last modified November 24, 2026, 11:17 UTC
Last checked
CVE list November 28, 2026, 17:54 UTC; NVD November 24, 2026, 12:08 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect libssh?

Every CVE in libssh

Questions about CVE-2025-5372

Is CVE-2025-5372 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.70% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of libssh are affected by CVE-2025-5372?

libssh before 0.11.2, Red Hat Enterprise Linux 9 all versions (the record names no range) and Red Hat OpenShift Container Platform 4 all versions (the record names no range), per the CVE record by redhat. The tables above give every range the sources list.

Which version fixes CVE-2025-5372?

0.11.2, 0:0.9.6-16.el8_10, 0:0.9.4-2.el8_4.2, 0:0.9.6-4.el8_6.2, 0:0.9.6-13.el8_8.2 and 0:0.9.6-3.el9_0.2, per the CVE record by redhat. Check the vendor's advisory before you rely on it.

How severe is CVE-2025-5372?

Medium (5.0, CVSS 3.1, from redhat). The severity table above shows each score with its source.

Where is the official record of CVE-2025-5372?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.