Skip to content
5.4 Medium

CVE-2025-5318 Libssh: out-of-bounds read in sftp_handle()

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.

CVSS 3.1 detail

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

Exploitable remotely over the network, with an ordinary account and without any user action; the impact on data or service is limited.

Attack vector
Network
Attack complexity
Low
Privileges required
Low
Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Affected products and versions

Show the 20 other branches
Product Affected versions Fixed in
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Versions not published
Red Hat Enterprise Linux 9 Versions not published
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Versions not published
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions not published
Red Hat Enterprise Linux 9.4 Extended Update Support Versions not published
Red Hat OpenShift Container Platform 4.12 412.86 earliest → < 412.86.202511191939-0 412.86.202511191939-0
Red Hat OpenShift Container Platform 4.13 413.92 earliest → < 413.92.202511261311-0 413.92.202511261311-0
Red Hat OpenShift Container Platform 4.14 414.92 earliest → < 414.92.202511122212-0 414.92.202511122212-0
Red Hat OpenShift Container Platform 4.17 417.94 earliest → < 417.94.202510282022-0 417.94.202510282022-0
Red Hat OpenShift Container Platform 4.18 418.94 earliest → < 418.94.202511041748-0 418.94.202511041748-0
Red Hat OpenShift Container Platform 4.19 4.19 earliest → < 4.19.9.6.202510281054-0 4.19.9.6.202510281054-0
Red Hat OpenShift Container Platform 4.20 4.20 earliest → < 4.20.9.6.202510290321-0 4.20.9.6.202510290321-0
Red Hat AI Inference Server 3.2 1772160625 earliest → < 1772160625 1772160625
Red Hat OpenShift distributed tracing 3.7.0 Versions not published
Red Hat OpenShift distributed tracing 3.7.1 Versions not published
Red Hat OpenShift Container Platform 4.16 416.94 earliest → < 416.94.202601071926-0 416.94.202601071926-0
Red Hat OpenShift AI 3.2 Versions not published
Red Hat OpenShift Container Platform 4.15 415.92 earliest → < 415.92.202601271320-0 415.92.202601271320-0
Red Hat In-Vehicle Operating System 1 Versions not published
Red Hat OpenShift Container Platform 4 Versions not published

References

Timeline

  1. Published
  2. Last modified
The 1454 CVEs of Red Hat Enterprise Linux 10 →
Track this CVE