Skip to main content
No exploitation reportedFix available

CVE-2025-5372

No exploitation reported by the sources we read.

  • Published2025-07-04
  • Fixed in0.11.2
  • WeaknessCWE-682

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-07-0406:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-11-03 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2025-5372?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2025-5372?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD
Libssh
BranchAffectedFixed in
0.11< 0.11.20.11.2
Redhat enterprise linux
BranchAffectedFixed in
6.0= 6.0no fix published
7.0= 7.0no fix published
8.0= 8.0no fix published
9.0= 9.0no fix published
10.0= 10.0no fix published
Redhat openshift container platform
BranchAffectedFixed in
4.0= 4.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA15 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

9 more products in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-09-01

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libsshUbuntu:Pro:20.04:LTSall versions · no fixed version listed
  • libsshUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • libsshUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • libsshUbuntu:24.04:LTSall versions · fixed in 0.10.6-2ubuntu0.1
  • libsshUbuntu:22.04:LTSall versions · fixed in 0.9.6-2ubuntu0.22.04.4
  • libsshTuxCare:CentOS:8.5all versions · fixed in 0.9.4-3.el8.tuxcare.els6and 2 other packages
  • libsshTuxCare:CentOS:8.4all versions · fixed in 0.9.4-3.el8.tuxcare.els6and 2 other packages
  • libsshTuxCare:CentOS-Stream:8all versions · fixed in 0.9.6-14.el8.tuxcare.els2and 2 other packages

67 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-5372 Red Hat Product Security154 products fixed · 13 known affected

    libssh: Incorrect Return Code Handling in ssh_kdf() in libssh

    libssh2 as a component of Red Hat Enterprise Linux 6 · libssh2-devel as a component of Red Hat Enterprise Linux 6 · libssh2-docs as a component of Red Hat Enterprise Linux 6 · +10 more

  • RHSA-2026:25911 Red Hat Product Security28 products fixed

    Red Hat Security Advisory: libssh security update

  • RHSA-2026:24349 Red Hat Product Security28 products fixed

    Red Hat Security Advisory: libssh security update

  • RHSA-2026:20610 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: libssh security update

  • RHSA-2025:23024 Red Hat Product Security32 products fixed

    Red Hat Security Advisory: libssh security update

  • RHSA-2025:21977 Red Hat Product Security32 products fixed

    Red Hat Security Advisory: libssh security update

Full record on NVD

Fix

  1. Update Libssh to 0.11.2
  2. Vendor fix Red Hat Product Security RHSA-2026:25911 · 28 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2026:25911 · 28 productsTo 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…
  4. No fix available, says the vendor Red Hat Product Security CVE-2025-5372 · 5 productsAffected
  5. No fix planned, says the vendor Red Hat Product Security CVE-2025-5372 · 8 productsOut of support scope

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2025-07-04
Last Modified
2026-09-01
NVD status
Modified
GitHub Advisory
GHSA-59w5-j22f-h3rv

Frequently asked questions

What is CVE-2025-5372?

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.

Is CVE-2025-5372 actively exploited?

Active exploitation of CVE-2025-5372 has not been confirmed. Its EPSS score was 0.5% on 2026-11-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-5372?

CVE-2025-5372 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running libssh? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record