CVE-2025-5318
CBL Mariner vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-5318) was discovered in the libssh library affecting all versions. The flaw exists in the SFTP server implementation, specifically within the sftp_handle() function. The vulnerability was disclosed on June 24, 2025, and is tracked with a CVSS v3.1 base score of 5.4 (Medium) (NVD, LibSSH Advisory).

Technical details

The vulnerability stems from an incorrect comparison check in the sftp_handle() function within the SFTP server implementation. This boundary check error allows the function to access memory beyond the valid handle list, resulting in the return of an invalid pointer that is subsequently used in further processing. The vulnerability is classified as an Out-of-bounds Read (CWE-125) (NVD, LibSSH Advisory).

Impact

When exploited, this vulnerability could allow an authenticated remote attacker to read unintended memory regions. This could potentially lead to the exposure of sensitive information or affect service behavior. The vulnerability requires valid credentials to access the server, which limits its scope to legitimate users of the SFTP service (NVD).

Mitigation and workarounds

Patches addressing the vulnerability have been released in libssh version 0.11.2. System administrators are advised to upgrade to this version as soon as possible. No workarounds are available for this vulnerability (LibSSH Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management