CVE-2025-5318

HIGH
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...

Full CISO analysis pending enrichment.

What systems are affected?

Package Ecosystem Vulnerable Range Patched
vLLM pip No patch
83.4K 130 dependents Pushed 4d ago 33% patched ~32d to patch Full package profile →
vLLM pip No patch
83.4K 130 dependents Pushed 4d ago 33% patched ~32d to patch Full package profile →
libssh No patch
rhaiis/model-opt-cuda-rhel9 No patch
rhcos No patch
rhosdt/tempo-gateway-opa-rhel8 No patch
rhosdt/tempo-gateway-rhel8 No patch
rhosdt/tempo-jaeger-query-rhel8 No patch
rhosdt/tempo-query-rhel8 No patch
rhosdt/tempo-rhel8 No patch
rhosdt/tempo-rhel8-operator No patch

How severe is it?

CVSS 3.1
8.1 / 10
EPSS
N/A
Exploitation Status
No known exploitation
Sophistication
N/A

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC Low
PR Low
UI None
S Unchanged
C High
I None
A High

What should I do?

No patch available

Monitor for updates. Consider compensating controls or temporary mitigations.

Which compliance frameworks are affected?

Compliance analysis pending. Sign in for full compliance mapping when available.

Frequently Asked Questions

What is CVE-2025-5318?

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.

Is CVE-2025-5318 actively exploited?

No confirmed active exploitation of CVE-2025-5318 has been reported, but organizations should still patch proactively.

How to fix CVE-2025-5318?

No patch is currently available. Monitor vendor advisories for updates.

What is the CVSS score for CVE-2025-5318?

CVE-2025-5318 has a CVSS v3.1 base score of 8.1 (HIGH).

What are the technical details?

Original Advisory

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.

Weaknesses (CWE)

CWE-125 — Out-of-bounds Read: The product reads data past the end, or before the beginning, of the intended buffer.

  • [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
  • [Architecture and Design] Use a language that provides appropriate memory abstractions.

Source: MITRE CWE corpus.

CVSS Vector

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

References

Timeline

Published
June 24, 2025
Last Modified
June 25, 2026
First Seen
June 25, 2026

Related Vulnerabilities