VDB

CVE-2025-5372

CVE-2025-5372 PUBLISHED CVSS 5 MEDIUM

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

Reported by redhat · Published July 4, 2025

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.

Risk scores

CVSS 3.1
5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
libsshlibssh0
Red HatRed Hat Enterprise Linux 80:0.9.6-16.el8_10
Red HatRed Hat Enterprise Linux 80:0.9.6-16.el8_10
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:0.9.4-2.el8_4.2
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:0.9.4-2.el8_4.2
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:0.9.6-4.el8_6.2
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On0:0.9.6-4.el8_6.2
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service0:0.9.6-13.el8_8.2
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:0.9.6-13.el8_8.2
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:0.9.6-3.el9_0.2
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat OpenShift Container Platform 4
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 80:0.9.6-16.el8_10

…and 13 more

Timeline

  • Jun 29, 2025 CVE Published
  • Jul 4, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 27, 2026 Coalition ESS Score (2 in total, the first dated here)
  • May 26, 2026 Distribution Patch (43 in total, the first dated here)
  • May 26, 2026 Security Advisory (44 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-5372
vulnetix vdb fixes CVE-2025-5372

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-5372/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›