CVE-2025-15661
Received Received - Intake
Heap Buffer Over-Read in libssh2 SFTP

Publication date: 2026-06-18

Last updated on: 2026-06-18

Assigner: VulnCheck

Description
libssh2 through 1.11.1, fixed in commit 2dae302, contains an out-of-bounds heap read vulnerability in the sftp_symlink() function in src/sftp.c that allows a malicious SSH server or man-in-the-middle attacker to disclose heap memory contents or cause a crash by sending a crafted SSH_FXP_NAME response. Attackers can supply a link_len value larger than the actual packet data in SSH_FXP_NAME responses for SFTP READLINK and REALPATH operations, triggering a heap buffer over-read of up to target_len minus one bytes due to the missing validation of available packet buffer size before the memcpy operation.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-18
Last Modified
2026-06-18
Generated
2026-06-19
AI Q&A
2026-06-19
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
libssh2 libssh2 to 1.11.1 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in libssh2 versions up to 1.11.1 in the sftp_symlink() function. It is an out-of-bounds heap read caused by improper validation of the link_len value in SSH_FXP_NAME responses during SFTP READLINK and REALPATH operations. A malicious SSH server or man-in-the-middle attacker can send a crafted SSH_FXP_NAME response with a link_len larger than the actual packet data, which triggers a heap buffer over-read. This can lead to disclosure of heap memory contents or cause the application to crash.

Impact Analysis

The vulnerability can impact you by allowing an attacker to disclose sensitive heap memory contents, potentially exposing confidential information. Additionally, it can cause the affected application to crash, leading to denial of service. The attacker can exploit this by acting as a malicious SSH server or performing a man-in-the-middle attack.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-15661. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart