CVE-2025-5318: Libssh: out-of-bounds read in sftp_handle()
CVE-2025-5318 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Medium
- CVSS base score
- 5.4 (NetApp), 5.4 (Red Hat)
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N· base score 5.4, scored by redhatAttack vector: network. Attack complexity: low. Privileges required: low. User interaction: none. Scope: unchanged. Confidentiality impact: low. Integrity impact: low. Availability impact: none.- Weakness
- CWE-125 Out-of-bounds Read
- EPSS
- 2.03% chance of exploitation in the next 30 days (81st percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- Fixed releases
- 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 and 44 more in the advisory
- Assigned by
- redhat (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2025-5318; each belongs to its advisory, not to every product listed. How records are collected and checked.
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.
Text from the CVE.org record (redhat).
How do I fix CVE-2025-5318?
Upgrade to a fixed release named by the vendor:
- 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
- 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. (Red Hat)
- Workaround: 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. (CVE.org record)
Vendor advisories for CVE-2025-5318
NetApp
1 advisory- Advisory severityMedium5.4
Medium [CVE-2025-5318] Libssh Vulnerability in NetApp Products
NTAP-20260102-0001Source published Source updated
Multiple NetApp products incorporate libssh. Libssh versions prior to 0.11.2 are susceptible to a vulnerability which when successfully exploited could lead to disclosure of sensitive information, or addition or modification of data. NetApp states there is no workaround available at this time.
- Affected products in this advisory
- No product details extracted. Check the source bulletin.
- Source-reported affected versions
- 0.11.2
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
Red Hat
1 advisory- Advisory severityMedium5.4
Medium [CVE-2025-5318] out-of-bounds read in sftp_handle
CVE-2025-5318Source published Source updated
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 in this 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
20 more entries in the full advisory.
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- 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
46 more entries in the full advisory.
- Mitigation guidance
- 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.
References
- CVE-2025-5318 recordCVE.org
- CVE-2025-5318 detailNVD
- RHSA-2025:18231vendor-advisory, x_refsource_redhat
- RHSA-2025:18275vendor-advisory, x_refsource_redhat
- RHSA-2025:18286vendor-advisory, x_refsource_redhat
- RHSA-2025:19012vendor-advisory, x_refsource_redhat
- RHSA-2025:19098vendor-advisory, x_refsource_redhat
- RHSA-2025:19101vendor-advisory, x_refsource_redhat
- RHSA-2025:19295vendor-advisory, x_refsource_redhat
- RHSA-2025:19300vendor-advisory, x_refsource_redhat
- RHSA-2025:19313vendor-advisory, x_refsource_redhat
- RHSA-2025:19400vendor-advisory, x_refsource_redhat
- RHSA-2025:19401vendor-advisory, x_refsource_redhat
- RHSA-2025:19470vendor-advisory, x_refsource_redhat
- RHSA-2025:19472vendor-advisory, x_refsource_redhat
and 17 more in the CVE.org record.
Timeline
- CVE record published
- First vendor advisory listed by VulniPulse
- CVE record last updated
More NetApp advisories
CVE-2026-123862Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-114949Nov 20, 2026November 2026 MySQL Vulnerabilities in NetApp ProductsCVE-2026-123863Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123828Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123863Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123868Nov 20, 2026Node.js Vulnerability in NetApp Products
Get an email when NetApp publishes the next one.
See NetApp's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.