{"schemaVersion":3,"id":"CVE-2025-5372","aliases":["RHSA-2025:21977","RHSA-2025:23024","RHSA-2026:20610","RHSA-2026:24349","RHSA-2026:25911","UBUNTU-CVE-2025-5372","DEBIAN-CVE-2025-5372"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-07-04T06:01:27.954Z","modified":"2026-09-01T11:51:32.322Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":4.1,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00501,"percentile":0.41647,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.06899999999999996,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00432},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00501,"percentile":0.41647}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00501,"percentile":0.41647}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-682","name":"Incorrect Calculation","description":"The product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management.","type":"weakness","status":"Draft","abstraction":"Pillar","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/682.html"}],"affected":[{"vendor":"debian","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libssh","purlType":"deb","versions":[{"text":"< 0.10.6-0+deb12u2","noFixRecorded":false,"fixedIn":null},{"text":"< 0.11.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.6-0+deb12u2 | < 0.11.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libssh","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 0.9.6-2ubuntu0.22.04.4","noFixRecorded":false,"fixedIn":null},{"text":"< 0.10.6-2ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1","eol":null,"hubHref":null},{"vendor":"libssh","product":"libssh","name":"libssh","label":"libssh","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.11.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.11.2","eol":null,"hubHref":"/vendor/libssh/libssh"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0 | 7.0 | 8.0 | 9.0 | 10.0","eol":{"isEol":true,"eolDate":"2020-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"6","label":"6 (ELS)","eolFrom":"2020-11-30T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"6.10"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"},{"vendor":"redhat","product":"openshift_container_platform","name":"openshift container platform","label":"openshift_container_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.0","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"},{"vendor":"redhat","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh","purlType":"rpm","versions":[{"text":"< 0:0.9.6-13.el8_8.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.4-2.el8_4.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-16.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-3.el9_0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-4.el8_6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"libssh-config","name":"libssh-config","label":"libssh-config","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh-config","purlType":"rpm","versions":[{"text":"< 0:0.9.6-13.el8_8.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.4-2.el8_4.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-16.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-3.el9_0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-4.el8_6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"libssh-debuginfo","name":"libssh-debuginfo","label":"libssh-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh-debuginfo","purlType":"rpm","versions":[{"text":"< 0:0.9.6-13.el8_8.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.4-2.el8_4.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-16.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-3.el9_0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-4.el8_6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"libssh-debugsource","name":"libssh-debugsource","label":"libssh-debugsource","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh-debugsource","purlType":"rpm","versions":[{"text":"< 0:0.9.6-13.el8_8.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.4-2.el8_4.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-16.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-3.el9_0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-4.el8_6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"libssh-devel","name":"libssh-devel","label":"libssh-devel","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh-devel","purlType":"rpm","versions":[{"text":"< 0:0.9.6-13.el8_8.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.4-2.el8_4.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-16.el8_10","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-3.el9_0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0:0.9.6-4.el8_6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:21977","label":"access.redhat.com/errata/RHSA-2025:21977","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2025:23024","label":"access.redhat.com/errata/RHSA-2025:23024","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:20610","label":"access.redhat.com/errata/RHSA-2026:20610","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24349","label":"access.redhat.com/errata/RHSA-2026:24349","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25911","label":"access.redhat.com/errata/RHSA-2026:25911","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-5372","label":"access.redhat.com/security/cve/CVE-2025-5372","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","REPORT","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2369388","label":"bugzilla.redhat.com/show_bug.cgi?id=2369388","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT","Third Party Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_21977.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_21977.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-5372","label":"www.cve.org/CVERecord?id=CVE-2025-5372","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5372","label":"nvd.nist.gov/vuln/detail/CVE-2025-5372","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23024.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23024.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_20610.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_20610.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_24349.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_24349.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_25911.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_25911.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-5372","label":"ubuntu.com/security/CVE-2025-5372","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.libssh.org/security/advisories/CVE-2025-5372.txt","label":"www.libssh.org/security/advisories/CVE-2025-5372.txt","hostname":"www.libssh.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7619-1","label":"ubuntu.com/security/notices/USN-7619-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-5372","label":"security-tracker.debian.org/tracker/CVE-2025-5372","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4385-1","MGASA-2026-0189","OPENSUSE-SU-2025:15243-1","SUSE-SU-2025:02229-1","SUSE-SU-2025:02278-1","SUSE-SU-2025:02279-1","SUSE-SU-2025:02281-1","SUSE-SU-2025:20557-1","SUSE-SU-2025:20596-1","USN-7619-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15243-1","SUSE-SU-2025:02229-1","SUSE-SU-2025:02278-1","SUSE-SU-2025:02279-1","SUSE-SU-2025:02281-1","SUSE-SU-2025:20557-1","SUSE-SU-2025:20596-1","USN-7619-1"]},"timeline":[{"kind":"published","date":"2025-07-04T06:01:27.954Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-01T11:51:32.322Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:07:52.811Z","stale":false,"partial":false}}