CVE-2025-5318

HIGHCVSS 8.1/10EPSS 2.39%

Last modified

CVE-2025-5318 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 2.39% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
8.1/10

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

EPSS Probability
2.39%

81.9th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RedhatOpenshift Container Platform4.0
RedhatEnterprise Linux8.0
RedhatEnterprise Linux9.0
RedhatEnterprise Linux10.0
LibsshLibssh< 0.11.2

References

Timeline

Published
Last Modified
Status
Modified

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.
How severe is CVE-2025-5318?
CVE-2025-5318 has a CVSS score of 8.1/10 (HIGH severity). The EPSS model estimates a 2.39% probability of exploitation in the next 30 days.
How do I fix CVE-2025-5318?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2025-5318?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST