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
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.019, 79.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libssh
- Red Hat Enterprise Linux — versions 8.0, 9.0, 10.0
- Red Hat Openshift Container Platform — versions 4.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (8-cm/kube-dump). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- access.redhat.com/errata/RHSA-2025:18231 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2025:18275 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2025:18286 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2025:19012 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2025:19098 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2025:19101 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2025:19295 (vendor-advisory)
- access.redhat.com/errata/RHSA-2025:19300 (vendor-advisory)
- access.redhat.com/errata/RHSA-2025:19313 (vendor-advisory)
- access.redhat.com/errata/RHSA-2025:19400 (vendor-advisory)