{"id":"JLSEC-2026-1085","aliases":["JLSEC-2026-1085"],"related":["CVE-2026-66032","EUVD-2026-48719","GHSA-83r8-6c29-8gwr"],"kind":"vulnerability","state":"published","title":"libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the...","summary":"libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the `sftp_open()` function in `src/sftp.c` that allows a malicious SSH server to corrupt the heap of any authenticated client opening an SFTP session. When a server responds to `SSH_FXP_OPEN` with `SSH_FXP_STATUS` containing `FX_OK`, the response data buffer is freed, and if a subsequent `sftp_packet_require()` call returns a specific error such as `LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED`, the same pointer is freed a second time, enabling tcache dup conditions on glibc systems that allow overlapping allocations and function pointer overwrites.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the `sftp_open()` function in `src/sftp.c` that allows a malicious SSH server to corrupt the heap of any authenticated client opening an SFTP session. When a server responds to `SSH_FXP_OPEN` with `SSH_FXP_STATUS` containing `FX_OK`, the response data buffer is freed, and if a subsequent `sftp_packet_require()` call returns a specific error such as `LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED`, the same pointer is freed a second time, enabling tcache dup conditions on glibc systems that allow overlapping allocations and function pointer overwrites.","format":"markdown","source":"jlsec"}],"published":"2026-07-31T18:09:08.751Z","modified":"2026-07-31T18:20:50.317Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"Julia Security Advisories","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/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.104+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-83r8-6c29-8gwr","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/libssh2/libssh2/commit/5e4776146552d898b9c0e1b313cd093fa8dc92d0","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/libssh2/libssh2/pull/2180","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66032","tags":["web"],"sources":["jlsec"]},{"url":"https://www.vulncheck.com/advisories/libssh2-double-free-heap-corruption-via-sftp-open","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-1085","url":"https://osv.dev/vulnerability/JLSEC-2026-1085","licence":"CC-BY-4.0","modified":"2026-07-31T18:20:50.317Z"}],"updatedAt":"2026-11-25T22:56:25.857Z"}