CVE-2025-5318

A flaw was found in the libssh library. 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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*

History

21 Aug 2025, 01:10

Type Values Removed Values Added
CPE cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
References () https://access.redhat.com/security/cve/CVE-2025-5318 - () https://access.redhat.com/security/cve/CVE-2025-5318 - Third Party Advisory
References () https://bugzilla.redhat.com/show_bug.cgi?id=2369131 - () https://bugzilla.redhat.com/show_bug.cgi?id=2369131 - Issue Tracking, Third Party Advisory
References () https://www.libssh.org/security/advisories/CVE-2025-5318.txt - () https://www.libssh.org/security/advisories/CVE-2025-5318.txt - Vendor Advisory
First Time Redhat
Libssh libssh
Redhat enterprise Linux
Redhat openshift Container Platform
Libssh

26 Jun 2025, 18:58

Type Values Removed Values Added
Summary
  • (es) Se encontró una falla en la librería libssh. Una lectura fuera de los límites puede activarse en la función sftp_handle debido a una comprobación de comparación incorrecta que permite que la función acceda a memoria más allá de la lista de manejadores válidos y devuelva un puntero no válido, que se utiliza en el procesamiento posterior. Esta vulnerabilidad permite que un atacante remoto autenticado lea regiones de memoria no deseadas, exponiendo información confidencial o afectando el comportamiento del servicio.

24 Jun 2025, 14:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-06-24 14:15

Updated : 2025-08-21 01:10


NVD link : CVE-2025-5318

Mitre link : CVE-2025-5318

CVE.ORG link : CVE-2025-5318


JSON object : View

Products Affected

libssh

  • libssh

redhat

  • enterprise_linux
  • openshift_container_platform
CWE
CWE-125

Out-of-bounds Read