CVEfocus › CVE database › CVE-2025-15661

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

CVSS 6.5 MediumEPSS 0.4% (higher than 31% of CVEs)Published 2026-06-18Updated 2026-11-10Assigner: VulnCheck

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.

CWE-125

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
4Fix pending
1Under investigation
6Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libssh2Fixed1.11.1-1ubuntu0.26.04.2UBUNTU-CVE-2025-15661
Ubuntu 25.10libssh2Fixed1.11.1-1ubuntu0.25.10.2UBUNTU-CVE-2025-15661
Ubuntu 24.04libssh2Fixed1.11.0-4.1ubuntu0.24.04.2UBUNTU-CVE-2025-15661
Ubuntu 22.04libssh2Under investigationUBUNTU-CVE-2025-15661
Ubuntu 20.04libssh2Fix pendingUBUNTU-CVE-2025-15661
Ubuntu 18.04libssh2Fix pendingUBUNTU-CVE-2025-15661
Ubuntu 16.04libssh2Fix pendingUBUNTU-CVE-2025-15661
Ubuntu 14.04libssh2Fix pendingUBUNTU-CVE-2025-15661
Debian 14libssh2Fixed1.11.1-4DEBIAN-CVE-2025-15661
Debian 13libssh2Fixed1.11.1-1+deb13u1DEBIAN-CVE-2025-15661
Debian 12libssh2Fixed1.10.0-3+deb12u1DEBIAN-CVE-2025-15661
Red Hat Enterprise Linux 7libssh2Will not fix
Out of support scope
Red Hat Enterprise Linux 7libssh2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libssh2-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6libssh2Will not fix
Out of support scope
Red Hat Enterprise Linux 6libssh2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libssh2-docsWill not fix
Out of support scope
Alpine Linux 3.24chromium-rustFixed1.96.1-r0ALPINE-CVE-2025-15661
Alpine Linux 3.24libssh2Fixed1.11.1-r4ALPINE-CVE-2025-15661
Alpine Linux 3.24rustFixed1.96.1-r0ALPINE-CVE-2025-15661
Alpine Linux 3.23libssh2Fixed1.11.1-r4ALPINE-CVE-2025-15661
Alpine Linux 3.22libssh2Fixed1.11.1-r3ALPINE-CVE-2025-15661
Alpine Linux 3.21libssh2Fixed1.11.1-r3ALPINE-CVE-2025-15661

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.