CVE-2025-5318
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/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Openshift Container Platform | 4.0 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux | 9.0 |
| Redhat | Enterprise Linux | 10.0 |
| Libssh | Libssh | < 0.11.2 |
References
- https://access.redhat.com/errata/RHSA-2025:18231Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:18275Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:18286Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:19012Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:19098Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:19101Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2025-5318Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2369131Issue Tracking, Third Party Advisory
- https://www.libssh.org/security/advisories/CVE-2025-5318.txtVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-5318?
How severe is CVE-2025-5318?
How do I fix CVE-2025-5318?
Are you affected by CVE-2025-5318?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
