{"id":"JLSEC-2026-659","aliases":["JLSEC-2026-659"],"related":["CVE-2025-15661","GHSA-3wqh-87fg-ffgg","EUVD-2025-210285"],"kind":"vulnerability","state":"published","title":"libssh2 through 1.11.1, fixed in commit 2dae302, contains an out-of-bounds heap read vulnerability...","summary":"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.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","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.","format":"markdown","source":"jlsec"}],"published":"2026-07-10T13:57:40.607Z","modified":"2026-07-25T18:24:44.149Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"Julia Security Advisories","scheme":"CVSS:4.0","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.102+0"}],"ecosystem":"Julia","package":"LibSSH2_jll","purl":"pkg:julia/LibSSH2_jll?uuid=29816b5a-b9ab-546f-933c-edad1886dfa8","source":"jlsec"}],"references":[{"url":"https://github.com/advisories/GHSA-3wqh-87fg-ffgg","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/libssh2/libssh2/pull/1705","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/libssh2/libssh2/pull/1717","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15661","tags":["web"],"sources":["jlsec"]},{"url":"https://www.vulncheck.com/advisories/libssh2-heap-buffer-over-read-via-sftp-symlink-in-sftp-c","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-659","url":"https://osv.dev/vulnerability/JLSEC-2026-659","licence":"CC-BY-4.0","modified":"2026-07-25T18:24:44.149Z"}],"updatedAt":"2026-11-25T22:56:26.193Z"}