What is CVE-2025-15661?
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.
The record classifies CVE-2025-15661 under weakness class CWE-125. Its CVSS v3 base vector states that the flaw is reachable remotely over the network, needs no prior authentication, needs no user interaction, and has high impact on availability. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 154 days ago.
Severity and exploitation probability
- CVSS v3.1 base score
- 6.5 — MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H - CVSS v4.0 base score
- 8.3
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N - EPSS (FIRST)
- 0.6% probability of exploitation in the next 30 days, higher than 49.5% of all scored CVEs
- CISA KEV
- Not listed in the CISA Known Exploited Vulnerabilities catalog
- Threadlinqs priority
- 5.2/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
- Published
- 2026-06-18
Is CVE-2025-15661 being exploited?
It currently carries a trending score of 19 in the Threadlinqs vulnerability feed.
Affected products and versions
- libssh2: libssh2
How to fix CVE-2025-15661
Patch reference: https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d. Apply the vendor fix referenced above to every affected product listed in this record, then confirm the running version against the vendor advisory.
Threat activity tracking CVE-2025-15661
1 tracked threat in the Threadlinqs corpus references CVE-2025-15661, either in the campaign’s CVE list or as an indicator on the campaign record.
- Public PoC Released for Critical libssh2 Client-Side SSH Flaw (CVE-2026-55200) — CRITICAL · 2026-07-11
Sources
Enriched from CVE.org, FIRST EPSS, GitHub Security Advisories.