{"affected":[{"defaultStatus":"affected","ecosystem":"github","packageName":"libssh2/libssh2","product":"libssh2","source":"CNA: VulnCheck","vendor":"libssh2","versions":[{"lessThanOrEqual":"1.11.1","status":"affected","version":"0","versionType":"semver"},{"status":"unaffected","version":"2dae3024897e1898d389835151f4e9606227721d","versionType":"git"}]}],"cveId":"CVE-2025-15661","cwes":["CWE-125"],"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.","epss":{"date":"2026-11-08","percentile":0.51329,"score":0.00648},"exploits":[],"kev":null,"metrics":[{"score":8.3,"severity":"high","source":"CNA: VulnCheck","vector":"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","version":"4.0"},{"score":6.5,"severity":"medium","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","version":"3.1"}],"modifiedAt":1794146411094,"publishedAt":1781813909475,"references":[{"source":"CNA: VulnCheck","tags":["issue-tracking","patch"],"url":"https://github.com/libssh2/libssh2/pull/1705"},{"source":"CNA: VulnCheck","tags":["issue-tracking","patch"],"url":"https://github.com/libssh2/libssh2/pull/1717"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/libssh2-heap-buffer-over-read-via-sftp-symlink-in-sftp-c"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/libssh2/libssh2/pull/1705"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/libssh2/libssh2/pull/1717"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d"}],"revision":"b6cfc5d8656ce9632ad4afa8dcfc7b43ec12670b7ba69dbffacc5ca3400a5744","sources":[{"modifiedAt":1794146411094,"name":"CNA: VulnCheck","retrievedAt":1794146956701,"url":"https://www.cve.org/CVERecord?id=CVE-2025-15661"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1794150556202,"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-15661"}],"ssvc":{"assessedAt":1782151625411,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"libssh2 - Heap Buffer Over-read via sftp_symlink() in sftp.c","updatedAt":1794150556202}