CVE Catalog

CVE-2025-5318

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.54%

73th percentile - higher than 73% of all known CVEs

Summary

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. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.

Risk Assessment

The risk for the organization includes potential leakage of confidential data stored in server memory and possible destabilization of services using libssh, which could lead to service disruptions or compromise system integrity.

Recommendation

It is recommended to immediately update the libssh library to version 0.11.2 or later, which contains the fix for this vulnerability. Additionally, review SFTP and SSH service configurations to restrict access for authenticated users.

Other vulnerabilities in libssh

See all
Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS