# CVE-2025-15661: libssh2 - Heap Buffer Over-read via sftp_symlink() in sftp.c

- Severity: High 8.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Published: 2026-06-18T20:18:29.475Z
- Modified: 2026-11-10T13:17:31.627Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- libssh2 libssh2: up to 1.11.1 (not affected: 2dae3024897e1898d389835151f4e9606227721d)

## Every score

- VulnCheck: CVSS:4.0 8.3 High `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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H`

## References

- <https://github.com/libssh2/libssh2/pull/1705> (issue-tracking, patch)
- <https://github.com/libssh2/libssh2/pull/1717> (issue-tracking, patch)
- <https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d> (patch)
- <https://www.vulncheck.com/advisories/libssh2-heap-buffer-over-read-via-sftp-symlink-in-sftp-c> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-15661](https://www.cve.org/CVERecord?id=CVE-2025-15661), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-15661](https://nvd.nist.gov/vuln/detail/CVE-2025-15661), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-15661 · Whole record: https://cve.day/CVE-2025-15661.json · Rebuilt by cve.day 2026-11-25T22:59:12.332Z
