CVE-2025-15661
libssh2: libssh2: Information disclosure and denial of service via crafted SFTP response
Overview
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.
Source: OX vulnerability database
Severity
6.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H
Weakness: CWE-125
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | LibSSH2_jll | <1.11.102+0 | 1.11.102+0 |
Open a package to see all its vulnerabilities.
Operating systems · 31 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | libssh2 | 0:1.11.1-4.azl3 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | libssh2 +2 | eol |
SUSE Linux Enterprise 6 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libssh2-1 +2 | 1.11.0-29.18.1 | SUSE-SU-2026:3525-1 |
| 15.4 | libssh2-1 +2 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 15.5 | libssh2-1 +2 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 15.6 | libssh2-1 +2 | 1.11.0-150600.20.6.1 | SUSE-SU-2026:3541-1 |
| 15.7 | libssh2-1 +2 | 1.11.0-150600.20.6.1 | SUSE-SU-2026:3541-1 |
| 16.0 | libssh2-1 +1 | 1.11.1-160000.5.1 | SUSE-SU-2026:23214-1 |
SUSE Linux Enterprise Micro 6 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | libssh2-1 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 5.4 | libssh2-1 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 5.5 | libssh2-1 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 6.0 | libssh2-1 | 1.11.0-4.1 | SUSE-SU-2026:23245-1 |
| 6.1 | libssh2-1 | 1.11.0-slfo.1.1_2.1 | SUSE-SU-2026:23187-1 |
| 6.2 | libssh2-1 | 1.11.1-160000.5.1 | SUSE-SU-2026:23049-1 |
alpine 4 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | libssh2 | 1.11.1-r3 |
| 3.23 | libssh2 | 1.11.1-r4 |
| 3.24 | libssh2 | 1.11.1-r4 |
| 3.24 | chromium-rust +1 | 1.96.1-r0 |
| edge | libssh2 | 1.11.1-r4 |
| edge | rust | 1.96.1-r0 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libssh2 | 1.11.1-r7 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | libssh2 | affected |
| 12 | libssh2 | 1.10.0-3+deb12u1 |
| 13 | libssh2 | 1.11.1-1+deb13u1 |
| 14 | libssh2 | 1.11.1-4 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libssh2 | 1.10.0-3+deb12u1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libssh2-1 +2 | 1.11.1-3.1 | openSUSE-SU-2026:11109-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | libssh2-1 +1 | 1.11.1-160000.5.1 | openSUSE-SU-2026:21549-1 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | libssh2 | 1.11.0-4.1ubuntu0.24.04.2 |
| 26.04 | libssh2 | 1.11.1-1ubuntu0.26.04.2 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libssh2 | 1.11.1-r7 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-15661
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-457936.html
- github.com https://github.com/advisories/GHSA-3wqh-87fg-ffgg
- github.com https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d
- github.com https://github.com/libssh2/libssh2/pull/1705
- github.com https://github.com/libssh2/libssh2/pull/1717
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-15661
- ubuntu.com https://ubuntu.com/security/notices/USN-8486-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-15661
- www.vulncheck.com https://www.vulncheck.com/advisories/libssh2-heap-buffer-over-read-via-sftp-symlink-in-sftp-c
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.