cbcvebase.
CVE-2025-5318
published 2025-06-24

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…

high8.1CVSS 3.1
AVNACLPRLUINSUCHINAH
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

19 ranges
VendorProductVersion rangeFixed in
debianlibssh< libssh 0.10.6-0+deb12u2 (bookworm)libssh 0.10.6-0+deb12u2 (bookworm)
libsshlibssh< 0.11.20.11.2
libsshlibssh>= 0 < 0.9.8-0+deb11u20.9.8-0+deb11u2
libsshlibssh>= 0 < 0.10.6-0+deb12u20.10.6-0+deb12u2
libsshlibssh>= 0 < 0.11.2-10.11.2-1
libsshlibssh>= 0 < 0.11.2-10.11.2-1
libsshlibssh>= 0 < 0.9.6-2ubuntu0.22.04.40.9.6-2ubuntu0.22.04.4
libsshlibssh>= 0 < 0.10.6-2ubuntu0.10.10.6-2ubuntu0.1
libsshlibssh>= 0 < 0.6.3-4.3ubuntu0.6+esm20.6.3-4.3ubuntu0.6+esm2
libsshlibssh>= 0 < 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm40.8.0~20170825.94fa1e38-1ubuntu0.7+esm4
libsshlibssh>= 0 < 0.9.3-2ubuntu2.5+esm10.9.3-2ubuntu2.5+esm1
msrcazl3_libssh_0.10.6-1_on_azure_linux_3.0
msrcazl3_libssh_0.10.6-2_on_azure_linux_3.0
msrccbl2_libssh_0.10.6-1_on_cbl_mariner_2.0
msrccbl2_libssh_0.10.6-2_on_cbl_mariner_2.0
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatopenshift_container_platform

CVSS provenance

nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
osv8.1HIGH