VDB

CVE-2025-5318

CVE-2025-5318 PUBLISHED CVSS 5.4 MEDIUM

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.

PackageEcosystemFixed in
libsshWolfi0.11.3-r0

Risk scores

CVSS 3.1
5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected products

VendorProductVersions
0
Red HatRed Hat Enterprise Linux 100:0.11.1-4.el10_0
Red HatRed Hat Enterprise Linux 100:0.11.1-4.el10_1
Red HatRed Hat Enterprise Linux 80:0.9.6-15.el8_10
Red HatRed Hat Enterprise Linux 80:0.9.6-15.el8_10
Red HatRed Hat Enterprise Linux 8.2 Advanced Update Support0:0.9.0-4.el8_2.1
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:0.9.4-2.el8_4.1
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:0.9.4-2.el8_4.1
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:0.9.6-4.el8_6.1
Red HatRed Hat Enterprise Linux 8.6 Telecommunications Update Service0:0.9.6-4.el8_6.1
Red HatRed Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:0.9.6-4.el8_6.1
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service0:0.9.6-13.el8_8.1
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:0.9.6-13.el8_8.1
Red HatRed Hat Enterprise Linux 90:0.10.4-15.el9_6
Red HatRed Hat Enterprise Linux 90:0.10.4-15.el9_7
Red HatRed Hat Enterprise Linux 90:0.10.4-15.el9_6
Red HatRed Hat Enterprise Linux 90:0.10.4-15.el9_7
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:0.9.6-3.el9_0.1
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:0.10.4-9.el9_2.1
Red HatRed Hat Enterprise Linux 9.4 Extended Update Support0: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

…and 10 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›