CVE-2025-5372

Source
https://cve.org/CVERecord?id=CVE-2025-5372
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-5372.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-5372
Downstream
AZL (2)
BELL (1)
CLSA (5)
DEBIAN (1)
JLSEC (1)
MGASA (1)
MINI (1)
OESA (6)
openSUSE (1)
RHSA (5)
RLSA (1)
ROOT (2)
SUSE (6)
UBUNTU (1)
Related
Published
2025-07-04T06:01:27Z
Modified
2026-09-03T03:30:26Z
Severity
  • 5.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
Libssh: incorrect return code handling in ssh_kdf() in libssh
Details

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.

Database specific
{
    "cna_assigner":  "redhat",
    "cwe_ids":  [
        "CWE-682"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5372.json"
}
References

Affected packages

Git / git.libssh.org/projects/libssh.git

Affected ranges

Type
GIT
Repo
https://git.libssh.org/projects/libssh.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
dff6c0821ed54f6fbf5b755af43f54cbb723b1b1
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "0.11.2"
        }
    ],
    "source":  "AFFECTED_FIELD"
}
Type
GIT
Repo
https://gitlab.com/libssh/libssh-mirror
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "0.11.2"
        }
    ],
    "source":  "CPE_RANGE"
}

Affected versions

libssh-0.*
libssh-0.11.0
libssh-0.11.1
libssh-0.8.0
Other
release-0-3-0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-5372.json"