libssh SFTP Server NULL Pointer Dereference Vulnerability Leading to Denial-of-Service

Vulnerability

A denial-of-service vulnerability has been identified in libssh, where a malicious SFTP server can exploit the application by sending a malformed 'longname' field within an 'SSH_FXP_NAME' message during file listing operations. This flaw arises from a missing null check, allowing the server to send data that the application does not properly validate, leading to a null pointer dereference. Such dereferences can cause the application to read beyond the allocated memory on the heap, potentially leading to application crashes or other unexpected behaviors.

Impact

Exploitation of this vulnerability causes the application to crash, exit, or restart. However, in rare cases, it could allow a malicious SFTP server to read or write memory, and possibly execute unauthorized code, especially if the server can manipulate memory addresses in a way that exploits this vulnerability.

Added: Mar 26, 2026, 9:44 PM
Updated: Mar 26, 2026, 9:44 PM

Vulnerability Rating

Custom Algorithm
spread
7.3
impact
0.6
exploitability
6.4
remediation
7.7
relevance
4.7
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.