CVE-2025-5318

medium

Description

A flaw was found in the libssh library. 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.

References

https://www.libssh.org/security/advisories/CVE-2025-5318.txt

https://bugzilla.redhat.com/show_bug.cgi?id=2369131

https://access.redhat.com/security/cve/CVE-2025-5318

Details

Source: Mitre, NVD

Published: 2025-06-24

Updated: 2025-06-26

Risk Information

CVSS v2

Base Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 5.4

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

Severity: Medium

EPSS

EPSS: 0.00037