CVE-2025-5318: Out-of-bounds Read in Red Hat Red Hat Enterprise Linux 10
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.
AI Analysis
Technical Summary
An out-of-bounds read vulnerability exists in the libssh library in versions before 0.11.2. The flaw occurs in the sftp_handle function where an incorrect comparison check permits access to memory beyond the valid handle list, returning an invalid pointer used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, which may expose sensitive information or impact service behavior. Red Hat has released security updates for affected Red Hat Enterprise Linux 9 and 10 versions to fix this issue.
Potential Impact
The vulnerability allows an authenticated remote attacker to read memory outside the intended bounds, potentially exposing sensitive information or causing unexpected service behavior. The CVSS v3.1 base score is 5.4 (medium severity), reflecting limited confidentiality and integrity impact without availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Official patches are available from Red Hat for affected libssh versions in Red Hat Enterprise Linux 9 and 10. Users should apply the updated libssh packages as described in Red Hat advisories RHSA-2025:18231 and RHSA-2025:18275. For detailed update instructions, refer to https://access.redhat.com/articles/11258. Applying these updates fully mitigates the vulnerability.
CVE-2025-5318: Out-of-bounds Read in Red Hat Red Hat Enterprise Linux 10
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.
CVSS v3.1
Score 5.4medium
Affected software
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 8
Red Hat
Red Hat Enterprise Linux 8.2 Advanced Update Support
Red Hat
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
Red Hat
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
Red Hat
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
Red Hat
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
Red Hat
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
Red Hat
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9
Red Hat
Red Hat Enterprise Linux 9
Red Hat
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9.4 Extended Update Support
Red Hat
Red Hat OpenShift Container Platform 4.12
Red Hat
Red Hat OpenShift Container Platform 4.13
Red Hat
Red Hat OpenShift Container Platform 4.14
Red Hat
Red Hat OpenShift Container Platform 4.15
Red Hat
Red Hat OpenShift Container Platform 4.16
Red Hat
Red Hat OpenShift Container Platform 4.17
Red Hat
Red Hat OpenShift Container Platform 4.18
Red Hat
Red Hat OpenShift Container Platform 4.19
Red Hat
Red Hat OpenShift Container Platform 4.20
Red Hat
Red Hat AI Inference Server 3.2
Red Hat
Red Hat AI Inference Server 3.2
Red Hat
Red Hat AI Inference Server 3.2
Red Hat
Red Hat AI Inference Server 3.2
Red Hat
Red Hat AI Inference Server 3.2
Red Hat
Red Hat OpenShift distributed tracing 3.7.0
Red Hat
Red Hat OpenShift distributed tracing 3.7.0
Red Hat
Red Hat OpenShift distributed tracing 3.7.0
Red Hat
Red Hat OpenShift distributed tracing 3.7.0
Red Hat
Red Hat OpenShift distributed tracing 3.7.0
Red Hat
Red Hat OpenShift distributed tracing 3.7.0
Red Hat
Red Hat OpenShift Container Platform 4
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
An out-of-bounds read vulnerability exists in the libssh library in versions before 0.11.2. The flaw occurs in the sftp_handle function where an incorrect comparison check permits access to memory beyond the valid handle list, returning an invalid pointer used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, which may expose sensitive information or impact service behavior. Red Hat has released security updates for affected Red Hat Enterprise Linux 9 and 10 versions to fix this issue.
Potential Impact
The vulnerability allows an authenticated remote attacker to read memory outside the intended bounds, potentially exposing sensitive information or causing unexpected service behavior. The CVSS v3.1 base score is 5.4 (medium severity), reflecting limited confidentiality and integrity impact without availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Official patches are available from Red Hat for affected libssh versions in Red Hat Enterprise Linux 9 and 10. Users should apply the updated libssh packages as described in Red Hat advisories RHSA-2025:18231 and RHSA-2025:18275. For detailed update instructions, refer to https://access.redhat.com/articles/11258. Applying these updates fully mitigates the vulnerability.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- redhat
- Date Reserved
- 2025-05-29T07:01:42.703Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/errata/RHSA-2025:18231","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:18275","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:18286","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19012","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19098","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19101","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19295","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19300","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19313","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19400","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19401","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19470","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19472","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19807","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19864","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:20943","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:21013","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:21329","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:21829","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22275","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:23078","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:23079","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:23080","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:0326","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:1541","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3461","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3462","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2025-5318","vendor":"Red Hat"}]
Threat ID: 685ab29b8e5e669c7fb575fc
Added to database: 06/24/2025, 14:13:47 UTC
Last enriched: 08/13/2026, 16:41:34 UTC
Last updated: 09/10/2026, 19:46:21 UTC
Views: 225
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.