{"id":"CVE-2026-66032","published":"2026-07-24T16:32:39Z","modified":"2026-11-10T12:49:34Z","title":"libssh2 Double-Free Heap Corruption via sftp_open()","vendor":"libssh2","product":"libssh2","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00582,"percentile":0.48738,"provenance":"source"},"cwes":[{"id":"CWE-415","name":"Double Free"}],"references":[{"url":"https://github.com/libssh2/libssh2/pull/2180","tags":["issue-tracking","patch"]},{"url":"https://github.com/libssh2/libssh2/commit/5e4776146552d898b9c0e1b313cd093fa8dc92d0","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/libssh2-double-free-heap-corruption-via-sftp-open","tags":["third-party-advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":9.75},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"libssh2","affectedVersions":[{"vendor":"libssh2","product":"libssh2","versions":["<= 1.11.1"]}],"fixedVersions":[{"vendor":"libssh2","product":"libssh2","versions":["5e4776146552d898b9c0e1b313cd093fa8dc92d0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-24T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-48719","exploited":false,"provenance":"source"}}