Out-of-bounds Read in Libssh
CVE-2025-5318
A flaw was found in the libssh library in versions less than 0.11.2. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.
Vulnerability class: Buffer Overflow
EPSS: 0.024 (82.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
Affected products
- Libssh
- Red Hat Ai Inference Server 3.2 — versions 3.2.2-1765379049, 1772160593, sha256:dce6b0ea03379bf06664a5200af8b5f5ae3fad13cdce6d21873843f22554800b
- Red Hat Enterprise Linux 10 — versions 0:0.11.1-4.el10_0, 0:0.11.1-4.el10_1
- Red Hat Enterprise Linux 8 — versions 0:0.9.6-15.el8_10
- Red Hat Enterprise Linux 8.2 Advanced Update Support — versions 0:0.9.0-4.el8_2.1
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support — versions 0:0.9.4-2.el8_4.1
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-life Add-on — versions 0:0.9.4-2.el8_4.1
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — versions 0:0.9.6-4.el8_6.1
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service — versions 0:0.9.6-4.el8_6.1
- Red Hat Enterprise Linux 8.6 Update Services For Sap Solutions — versions 0:0.9.6-4.el8_6.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory)
Frequently asked questions
- What is CVE-2025-5318?
- CVE-2025-5318 is a medium-severity vulnerability in Libssh, classified under Out-of-bounds Read. CVSS score: 5.4/10. Published 2025-06-24.
- How severe is CVE-2025-5318?
- Medium severity. CVSS v3 base score is 5.4 out of 10.
- Is CVE-2025-5318 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.