CVE-2025-5318
Libssh: out-of-bounds read in sftp_handle()
Reported by redhat · Published June 24, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libssh | Wolfi | 0.11.3-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| Red Hat | Red Hat Enterprise Linux 10 | 0:0.11.1-4.el10_0 |
| Red Hat | Red Hat Enterprise Linux 10 | 0:0.11.1-4.el10_1 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-15.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-15.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 0:0.9.0-4.el8_2.1 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:0.9.4-2.el8_4.1 |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | 0:0.9.4-2.el8_4.1 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:0.9.6-4.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | 0:0.9.6-4.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | 0:0.9.6-4.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | 0:0.9.6-13.el8_8.1 |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | 0:0.9.6-13.el8_8.1 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-15.el9_6 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-15.el9_7 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-15.el9_6 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-15.el9_7 |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | 0:0.9.6-3.el9_0.1 |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | 0:0.10.4-9.el9_2.1 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | 0:0.10.4-13.el9_4.1 |
…and 78 more
Timeline
- Jun 24, 2025 CVE Published
- Jun 25, 2025 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (77 in total, the first dated here)
- Mar 28, 2026 Coalition ESS Score (2 in total, the first dated here)
- Aug 11, 2026 Distribution Patch (72 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-5318
vulnetix vdb fixes CVE-2025-5318
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-5318/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2025:18231 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:18275 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:18286 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19012 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19098 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19101 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19295 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19300 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19313 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19400 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19401 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19470 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19472 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19807 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:19864 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:20943 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:21013 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:21329 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:21829 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22275 vendor-advisoryx_refsource_REDHAT
…and 10 more