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

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-18 · Modified: 2026-11-10
- Aliases: ALPINE-CVE-2025-15661, RHSA-2026:30132, UBUNTU-CVE-2025-15661, DEBIAN-CVE-2025-15661, CGA-fxpr-mqvx-3x7p, CGA-hhf6-3cmc-vgf2, CGA-p3mq-3jmw-4pm2, CGA-pmm9-wx53-c9gm, CGA-qrg5-mhqc-83qg, CGA-wpw8-4hpq-pc6c
- Record: https://cvemate.com/vulnerability/CVE-2025-15661 · JSON: https://cvemate.com/vulnerability/CVE-2025-15661/json

## Description

```text
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.
```

## Signals

- CVSS: 8.3 high (v4.0, CVE.org) 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: 0.832%, percentile 58.888%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine chromium-rust (Alpine Linux): \< 1.96.1-r0
- alpine libssh2 (Alpine Linux): \< 1.11.1-r3 \| \< 1.11.1-r4
- alpine rust (Alpine Linux): \< 1.96.1-r0
- chainguard libssh2 (Chainguard): \< 1.11.1-r7
- chainguard libssh2-dev (Chainguard): \< 1.11.1-r7
- chainguard libssh2-doc (Chainguard): \< 1.11.1-r7
- wolfi libssh2 (Wolfi): \< 1.11.1-r7
- wolfi libssh2-dev (Wolfi): \< 1.11.1-r7
- wolfi libssh2-doc (Wolfi): \< 1.11.1-r7
- debian libssh2 (Debian): \< 1.10.0-3+deb12u1 \| \< 1.11.1-1+deb13u1 \| \< 1.11.1-4
- ubuntu libssh2 (Ubuntu): All versions (No fix recorded) \| \< 1.4.3-2ubuntu0.2+esm5 \| \< 1.5.0-2ubuntu0.1+esm4 \| \< 1.8.0-1ubuntu0.1+esm2 \| \< 1.8.0-2.1ubuntu0.1+esm2 \| \< 1.10.0-3+deb12u1build0.22.04.1 \| \< 1.11.0-4.1ubuntu0.24.04.2 \| \< 1.11.1-1ubuntu0.25.10.2 \| \< 1.11.1-1ubuntu0.26.04.2
- libssh2 libssh2: ≤ 1.11.1
- redhat libssh2 (Red Hat): \< 0:1.11.1-9.hum1
- redhat libssh2-devel (Red Hat): \< 0:1.11.1-9.hum1
- redhat libssh2-docs (Red Hat): \< 0:1.11.1-9.hum1

## References

- <https://github.com/libssh2/libssh2/pull/1705>
- <https://github.com/libssh2/libssh2/pull/1717>
- <https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d>
- <https://www.vulncheck.com/advisories/libssh2-heap-buffer-over-read-via-sftp-symlink-in-sftp-c>
- <https://security.alpinelinux.org/vuln/CVE-2025-15661>
- <https://access.redhat.com/errata/RHSA-2026:30132>
- <https://images.redhat.com/>
- <https://access.redhat.com/security/cve/CVE-2025-15661>
- <https://access.redhat.com/security/updates/classification/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_30132.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2490586>
- <https://www.cve.org/CVERecord?id=CVE-2025-15661>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-15661>
- <https://ubuntu.com/security/CVE-2025-15661>
- <https://ubuntu.com/security/notices/USN-8486-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-15661>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15661.json>
- <https://github.com/libssh2/libssh2>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- <https://ubuntu.com/security/notices/USN-9248-1>

---

Data as of 2026-12-05T07:13:42.027Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
