Out-of-bounds Read Affecting libssh package, versions [,0.11.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBSSH-10753757
  • published17 Jul 2025
  • disclosed24 Jun 2025
  • creditRonald Crane

Introduced: 24 Jun 2025

NewCVE-2025-5318  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libssh to version 0.11.2 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the sftp_handle() function due to an incorrect comparison check that allows access to memory beyond the valid handle list, resulting in the return of an invalid pointer used in further processing. An attacker can access unintended memory regions and potentially expose sensitive information or alter service behaviour by sending crafted requests after authenticating to the SFTP service.

CVSS Base Scores

version 4.0
version 3.1