Security Resilience

CVE-2025-5372

Libssh ≤ 0.11.2

Published
04 July 2025
Modified
05 November 2026
CVSS Score v3.1 5.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS Score 0.0051 45th percentile
Risk Priority 41 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-5372 is a medium-severity Incorrect Calculation (CWE-682) vulnerability in Libssh. Its CVSS base score is 5.0 (Medium).

Operationally, ranked at the 45th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2025-5318Same product: Libssh Libssh
CVE-2025-5351Same product: Libssh Libssh
CVE-2026-0964Same product: Libssh Libssh
CVE-2026-0966Same product: Libssh Libssh
CVE-2026-0968Same product: Libssh Libssh
CVE-2026-0967Same product: Libssh Libssh
CVE-2026-0965Same product: Libssh Libssh
CVE-2026-59848Same product: Libssh Libssh
CVE-2026-59850Same product: Libssh Libssh
CVE-2026-59847Same product: Libssh Libssh

Affected Assets

libssh
libssh
≤ 0.11.2
redhat
openshift container platform
4.0
redhat
enterprise linux
10.0, 6.0, 7.0, 8.0, 9.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation directly exercises calculations and can discover incorrect or unintended results used in security decisions.

Requiring documented development processes and standards can enforce coding rules and tool usage that reduce introduction of calculation errors.

Engineering principles applied during design and implementation can require verified algorithms and safe arithmetic that structurally avoid incorrect calculation results.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance can detect calculation flaws before deployment.

prevents

Secure coding standards directly prohibit unsafe arithmetic and require defensive checks against incorrect results.

finds

A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw, and CWE-682 is primarily a first-party code defect (arithmetic, logic, pointer math) that lives in custom code A.8.8's scanning and inventory never read; the disclosed minority that surfaces as CVEs (e.g., CVE-2020-0022, CVE-2010-1378) is found, but the bulk is not, matching the same disclosure-bound `partial` shape as A.8.8 -> CWE-89.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-682, a pillar-level weakness, and none of its children carries one either.

References