Description
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.
Affected products
redhat: openshift container platform; redhat: enterprise linux; libssh: libssh
References10
- www.libssh.org/security/advisories/CVE-2025-5318.txt Vendor Advisory
- access.redhat.com/errata/RHSA-2025:18231 Third Party Advisory
- access.redhat.com/errata/RHSA-2025:18275 Third Party Advisory
- access.redhat.com/errata/RHSA-2025:18286 Third Party Advisory
- access.redhat.com/errata/RHSA-2025:19012 Third Party Advisory
- access.redhat.com/errata/RHSA-2025:19098 Third Party Advisory
- access.redhat.com/errata/RHSA-2025:19101 Third Party Advisory
- access.redhat.com/errata/RHSA-2025:19295
- access.redhat.com/errata/RHSA-2025:19300
- access.redhat.com/errata/RHSA-2025:19313
Metrics
- CVSS 3.1
-
5.4
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N - EPSS — exploit probability
- 2% percentile: 80 · as of 7 November 2026
- CWE
- CWE-125
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.