Red Hat Security Advisory: libssh security update
CVE-2025-5318 is an out-of-bounds read vulnerability in the libssh library affecting versions prior to 0.11.2. The flaw occurs in the sftp_handle function due to an incorrect comparison check, allowing access beyond the valid handle list and returning an invalid pointer. This can be exploited by an authenticated remote attacker to read unintended memory regions, potentially exposing sensitive information or impacting service behavior. Red Hat has released security updates for Red Hat Enterprise Linux 9 and 10 to address this issue.
AI Analysis
Technical Summary
CVE-2025-5318 is an out-of-bounds read vulnerability in the sftp_handle() function of libssh, a library used to implement SSH client and server applications. This vulnerability can lead to a high impact on confidentiality and availability as per the CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H). Red Hat has issued a security advisory (RHSA-2025:18231) providing updated libssh packages for Red Hat Enterprise Linux 10 to fix this issue. The advisory covers multiple architectures and Extended Update Support versions. The vulnerability is categorized under CWE-125 (out-of-bounds read).
Potential Impact
The vulnerability allows an attacker with low privileges to cause an out-of-bounds read in libssh's sftp_handle(), potentially leading to a high impact on confidentiality and availability of affected systems. There is no indication of integrity impact. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Red Hat has released updated libssh packages for Red Hat Enterprise Linux 10 and its Extended Update Support variants that fix this vulnerability. Users should apply the official patches provided in Red Hat advisory RHSA-2025:18231. For detailed update instructions, refer to https://access.redhat.com/articles/11258. No additional mitigations are indicated by the vendor.
Red Hat Security Advisory: libssh security update
Description
CVE-2025-5318 is an out-of-bounds read vulnerability in the libssh library affecting versions prior to 0.11.2. The flaw occurs in the sftp_handle function due to an incorrect comparison check, allowing access beyond the valid handle list and returning an invalid pointer. This can be exploited by an authenticated remote attacker to read unintended memory regions, potentially exposing sensitive information or impacting service behavior. Red Hat has released security updates for Red Hat Enterprise Linux 9 and 10 to address this issue.
CVSS v3.1
Score 8.1high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-5318 is an out-of-bounds read vulnerability in the sftp_handle() function of libssh, a library used to implement SSH client and server applications. This vulnerability can lead to a high impact on confidentiality and availability as per the CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H). Red Hat has issued a security advisory (RHSA-2025:18231) providing updated libssh packages for Red Hat Enterprise Linux 10 to fix this issue. The advisory covers multiple architectures and Extended Update Support versions. The vulnerability is categorized under CWE-125 (out-of-bounds read).
Potential Impact
The vulnerability allows an attacker with low privileges to cause an out-of-bounds read in libssh's sftp_handle(), potentially leading to a high impact on confidentiality and availability of affected systems. There is no indication of integrity impact. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Red Hat has released updated libssh packages for Red Hat Enterprise Linux 10 and its Extended Update Support variants that fix this vulnerability. Users should apply the official patches provided in Red Hat advisory RHSA-2025:18231. For detailed update instructions, refer to https://access.redhat.com/articles/11258. No additional mitigations are indicated by the vendor.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:0326
- Cve Count
- 7
- Additional Cves
- ["CVE-2025-5914","CVE-2025-8677","CVE-2025-11234","CVE-2025-40778","CVE-2025-40780","CVE-2025-59375"]
- Cvss Version
- null
Threat ID: 6a175eefe29bf47b50eddd4a
Added to database: 05/27/2026, 21:15:27 UTC
Last enriched: 07/19/2026, 22:03:06 UTC
Last updated: 07/25/2026, 20:52:01 UTC
Views: 88
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.
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.