CVE-2025-5318Libssh: out-of-bounds read in sftp_handle()
- 5.4MediumCVSS base score
- 1.9%Exploitation in 30 daysEPSS · top 20% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 26 days later
· 26 days later
Published
- 17 months later
· 17 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.9% · top 20% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
libssh
- affected < 0.11.2
Red Hat · Red Hat Enterprise Linux 10
- unaffected 0:0.11.1-4.el10_0 – < *
Red Hat · Red Hat Enterprise Linux 10
- unaffected 0:0.11.1-4.el10_1 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:0.9.6-15.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:0.9.6-15.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 8.2 Advanced Update Support
- unaffected 0:0.9.0-4.el8_2.1 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- unaffected 0:0.9.4-2.el8_4.1 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- unaffected 0:0.9.4-2.el8_4.1 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- unaffected 0:0.9.6-4.el8_6.1 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- unaffected 0:0.9.6-4.el8_6.1 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- unaffected 0:0.9.6-4.el8_6.1 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- unaffected 0:0.9.6-13.el8_8.1 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- unaffected 0:0.9.6-13.el8_8.1 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:0.10.4-15.el9_6 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:0.10.4-15.el9_7 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:0.10.4-15.el9_6 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:0.10.4-15.el9_7 – < *
Red Hat · Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
- unaffected 0:0.9.6-3.el9_0.1 – < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
- unaffected 0:0.10.4-9.el9_2.1 – < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Support
- unaffected 0:0.10.4-13.el9_4.1 – < *
Red Hat · Red Hat OpenShift Container Platform 4.12
- unaffected 412.86.202511191939-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.13
- unaffected 413.92.202511261311-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.14
- unaffected 414.92.202511122212-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.15
- unaffected 415.92.202601271320-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.16
- unaffected 416.94.202601071926-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.17
- unaffected 417.94.202510282022-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.18
- unaffected 418.94.202511041748-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.19
- unaffected 4.19.9.6.202510281054-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.20
- unaffected 4.20.9.6.202510290321-0 – < *
Red Hat · Red Hat AI Inference Server 3.2
- unaffected 3.2.2-1765379088 – < *
Red Hat · Red Hat AI Inference Server 3.2
- unaffected 3.2.2-1765379049 – < *
Red Hat · Red Hat AI Inference Server 3.2
- unaffected 3.2.2-1764871796 – < *
Red Hat · Red Hat AI Inference Server 3.2
- unaffected 1772160593 – < *
Red Hat · Red Hat AI Inference Server 3.2
- unaffected 1772160625 – < *
Red Hat · Red Hat OpenShift distributed tracing 3.7.0
- unaffected rhosdt-3.7-1762254546 – < *
Red Hat · Red Hat OpenShift distributed tracing 3.7.0
- unaffected rhosdt-3.7-1762254552 – < *
Red Hat · Red Hat OpenShift distributed tracing 3.7.0
- unaffected rhosdt-3.7-1762255881 – < *
Red Hat · Red Hat OpenShift distributed tracing 3.7.0
- unaffected rhosdt-3.7-1762254530 – < *
Red Hat · Red Hat OpenShift distributed tracing 3.7.0
- unaffected rhosdt-3.7-1762254519 – < *
Red Hat · Red Hat OpenShift distributed tracing 3.7.0
- unaffected rhosdt-3.7-1762254545 – < *
What to do
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.
References
References30
- RHSA-2025:18231 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:18275 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:18286 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19012 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19098 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19101 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19295 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19300 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19313 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19400 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19401 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19470 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19472 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19807 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19864 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:20943 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:21013 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:21329 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:21829 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22275 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:23078 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:23079 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:23080 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:0326 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:1541 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:3461 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:3462 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-5318 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2369131 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://www.libssh.org/security/advisories/CVE-2025-5318.txt (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-23900 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-5318)Record last updated .