CVE-2025-5318

HIGH
Published Jun 24, 2025 Modified Feb 27, 2026 CWE-125

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.

Is your site exposed to CVE-2025-5318?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

8.1
HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Weakness Type (CWE)

CWE-125 Out-of-bounds Read

Affected Products

Vendor Product
redhat openshift_container_platform
redhat enterprise_linux
redhat enterprise_linux
redhat enterprise_linux
libssh libssh

References

Frequently Asked Questions

What is 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. It has a CVSS v3.1 base score of 8.1 (HIGH).
How severe is CVE-2025-5318? +
CVE-2025-5318 has a CVSS v3.1 score of 8.1 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2025-5318? +
CVE-2025-5318 affects products from libssh, redhat, specifically: enterprise_linux, libssh, openshift_container_platform. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-5318? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-5318 — free, no signup required.