Skip to main content
HIGH

CVE-2025-5318

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

CVSS v3

8.1

HIGH

EPSS Score

1.8 %

exploit probability, as of 2026-09-25

CISA KEV

No

known exploited

Exploitation

none

SSVC status

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.

Technical details

Published
2025-06-24
Last Modified
2026-02-27

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?

Active exploitation of CVE-2025-5318 has not been confirmed. Its EPSS score was 1.8% on 2026-09-25, the estimated probability of exploitation in the next 30 days.

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

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

Is CVE-2025-5318 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.

No credit card required · 500 free checks/month · Free API key