Medium [CVE-2025-5318] out-of-bounds read in sftp_handle
This medium-severity Red Hat Linux advisory covers CVE-2025-5318 affecting Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published
Summary
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. This issue requires an attacker with valid credentials to access a server, limiting the scope to legitimate users of the SFTP service.
Due to this reason, this flaw has been rated with a Moderate severity. Red Hat severity: Moderate — CVSS 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
Weakness: CWE-125.
Affected products named by the advisory: Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 8.2 Advanced Update Support; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support; Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On; and 20 more.
Affected products named by the advisory: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support; Red Hat Enterprise Linux 8.6 Telecommunications Update Service; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions; Red Hat Enterprise Linux 8.8 Telecommunications Update Service; and 16 more.
Is CVE-2025-5318 exploited?
No exploitation is reported in the sources VulniPulse tracks: CVE-2025-5318 is not in the CISA KEV catalog (checked ) and this advisory does not report exploitation. That is not proof the vulnerability cannot be exploited.
How do I fix CVE-2025-5318?
Upgrade to a fixed release named by Red Hat:
- libssh-0:0.11.1-4.el10_0
- libssh-0:0.11.1-4.el10_1
- libssh-0:0.9.6-15.el8_10
- libssh-0:0.9.0-4.el8_2.1
- libssh-0:0.9.4-2.el8_4.1
- libssh-0:0.9.6-4.el8_6.1
- libssh-0:0.9.6-13.el8_8.1
- libssh-0:0.10.4-15.el9_6
- libssh-0:0.10.4-15.el9_7
- libssh-0:0.9.6-3.el9_0.1
- libssh-0:0.10.4-9.el9_2.1
- libssh-0:0.10.4-13.el9_4.1
38 more fixed releases are listed below.
Confirm against the vendor advisory before you patch.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative. Check it before change work.
Official advisory · high-confidence parse· fetched 16 days ago·verify at source
- libssh-0:0.11.1-4.el10_0
- libssh-0:0.11.1-4.el10_1
- libssh-0:0.9.6-15.el8_10
- libssh-0:0.9.0-4.el8_2.1
- libssh-0:0.9.4-2.el8_4.1
- libssh-0:0.9.6-4.el8_6.1
- libssh-0:0.9.6-13.el8_8.1
- libssh-0:0.10.4-15.el9_6
- libssh-0:0.10.4-15.el9_7
- libssh-0:0.9.6-3.el9_0.1
- libssh-0:0.10.4-9.el9_2.1
- libssh-0:0.10.4-13.el9_4.1
- rhcos-412.86.202511191939-0
- rhcos-413.92.202511261311-0
- rhcos-414.92.202511122212-0
- rhcos-415.92.202601271320-0
- rhcos-416.94.202601071926-0
- rhcos-417.94.202510282022-0
- rhcos-418.94.202511041748-0
- rhcos-4.19.9.6.202510281054-0
- rhcos-4.20.9.6.202510290321-0
- rhaiis/vllm-cuda-rhel9:3.2.2-1765379088
- rhaiis/vllm-rocm-rhel9:3.2.2-1765379049
- rhaiis/model-opt-cuda-rhel9:3.2.2-1764871796
- rhaiis/vllm-cuda-rhel9:1772160593
- rhaiis/vllm-rocm-rhel9:1772160625
- rhosdt/tempo-gateway-opa-rhel8:rhosdt-3.7-1762254546
- rhosdt/tempo-gateway-rhel8:rhosdt-3.7-1762254552
- rhosdt/tempo-jaeger-query-rhel8:rhosdt-3.7-1762255881
- rhosdt/tempo-query-rhel8:rhosdt-3.7-1762254530
- rhosdt/tempo-rhel8:rhosdt-3.7-1762254519
- rhosdt/tempo-rhel8-operator:rhosdt-3.7-1762254545
- RHSA-2025:18231
- RHSA-2025:21013
- RHSA-2025:18286
- RHSA-2025:19400
- RHSA-2025:19401
- RHSA-2025:19098
- RHSA-2025:19101
- RHSA-2025:18275
- RHSA-2025:20943
- RHSA-2025:19472
- RHSA-2025:19470
- RHSA-2025:19012
- RHSA-2025:21829
- RHSA-2025:22275
- RHSA-2025:21329
- RHSA-2026:1541
- RHSA-2026:0326
- RHSA-2025:19313
Official advisory · high-confidence parse· fetched 16 days ago·verify at source
Mitigation checklist
- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Official advisory · high-confidence parse· fetched 16 days ago·verify at source
Get an email when Red Hat RHEL & SELinux publishes the next one.
See Red Hat RHEL & SELinux's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).
More Red Hat Linux advisories
- CVE-2026-46300May 13, 2026"Fragnesia" is a variant of Dirty Frag vulnerability in the ESP/XFRM leading to Local
- CVE-2026-31431Apr 22, 2026algif_aead - Revert to operating out-of-place
- CVE-2025-31277Mar 18, 2026Processing maliciously crafted web content may lead to memory corruption
- CVE-2026-34486Apr 9, 2026Missing Encryption of Sensitive Data due to EncryptInterceptor bypass
- CVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli Decoder
- CVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-free
iPhone and Android apps · New on the App Store
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.