CVE-2025-5372
No exploitation reported by the sources we read.
- Published2025-07-04
- Fixed in0.11.2
- WeaknessCWE-682
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2025-07-0406:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock 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| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.11 | < 0.11.2 | 0.11.2 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.0 | = 6.0 | no fix published | NVD |
| 7.0 | = 7.0 | no fix published | NVD |
| 8.0 | = 8.0 | no fix published | NVD |
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.0 | = 4.0 | no fix published | NVD |
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.
- libsshother versions: not affected
https://git.libssh.org/projects/libssh.git
Affected- < 0.11.2fixed in 0.11.2semver
- Red Hat Enterprise Linux 8other versions: affected
package libsshhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:0.9.6-16.el8_10
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportother versions: affected
package libsshhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:0.9.4-2.el8_4.2
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onother versions: affected
package libsshhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:0.9.4-2.el8_4.2
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportother versions: affected
package libsshhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:0.9.6-4.el8_6.2
- Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onother versions: affected
package libsshhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:0.9.6-4.el8_6.2
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
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
Red Hat Security Advisory: libssh security update
Red Hat Security Advisory: libssh security update
Red Hat Security Advisory: libssh security update
Red Hat Security Advisory: libssh security update
Red Hat Security Advisory: libssh security update
Fix
- Update Libssh to 0.11.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
- 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…
- No fix available, says the vendor Red Hat Product Security CVE-2025-5372 · 5 productsAffected
- 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
- CISA-ADPSSVC decisionnone2025-07-08
- OpenCVESSVC decisionnone—
- CNACVSS 3.15known since 2026-10-23
- NVDCVSS 3.18.8read 2026-10-23
- CNAweakness (CWE)CWE-682known since 2026-10-23
- FIRST EPSSEPSS score0.5 %2026-11-03
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-64650same flawAzure Linux · MIT
- AZL-64656same flawAzure Linux · MIT
- EUVD-2025-19931same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-59w5-j22f-h3rvsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2025-97same flawJulia Security Advisories · CC-BY-4.0
- MINI-wx9w-xv2w-99pjsame flawMinimOS · LicenseRef-unstated
- ALSA-2025:21977advisory covering several CVEsAlmaLinux · MIT
- DLA-4385-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2026-0189advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-2127advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2128advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2129advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2130advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2132advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2294advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15243-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:21977advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23024advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:20610advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:24349advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:25911advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2025:21977advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2025:02229-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02278-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02279-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02281-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20557-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20596-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-7619-1advisory covering several CVEsUbuntu
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?
Is CVE-2025-5372 actively exploited?
What is the CVSS score for CVE-2025-5372?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2025-5318same productLibssh: out-of-bounds read in sftp_handle()
- CVE-2025-5987same product
- CVE-2023-6918same product
- CVE-2023-1667same product
- CVE-2025-5449same productLibssh: integer overflow in libssh sftp server packet length validation leading to denial of service
- CVE-2026-3731same product
- CVE-2025-5351same productLibssh: double free vulnerability in libssh key export functions
- CVE-2026-0966same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-59w5-j22f-h3rv
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0