CVE-2025-5318

published 24 Jun 2025 · updated 5 Nov 2026

Libssh: out-of-bounds read in sftp_handle()

5.4MediumCVSS 5.4EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 0.11.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatAI Inference Server
Red HatEnterprise Linux
Red HatOpenShift Container Platform
Red HatOpenShift distributed tracing
libsshlibssh<0.11.20.11.2
redhatenterprise_linux=9.0, =8.0, =10.0
redhatopenshift_container_platform=4.0
<0.11.20.11.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-5318 severity on Zeptric[![CVE-2025-5318](https://zeptric.io/badge/cve/CVE-2025-5318.svg)](https://zeptric.io/cve/CVE-2025-5318)