Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

Docker hardened images using libssh2 can corrupt client memory

published 10 days ago
Summary

The libssh2 library version up to 1.11.1, which is included in Docker hardened images, has a coding mistake that can cause memory to be freed twice when a client connects to a malicious SSH server. This can let an attacker corrupt the client’s memory and potentially take control of the process. Update libssh2 to the version that includes the fix or apply the vendor’s recommended patch as soon as possible.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Docker Hardened Images:Alpine:3.23 docker hardened images libssh2 All versions
Docker Hardened Images:Alpine:3.24 docker hardened images libssh2 All versions
Docker Hardened Images:Debian:13 docker hardened images libssh2 All versions
Original advisory text
libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the sftp_open() function in…
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
9.9 Critical
Timeline
Published11 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
Track software like this
Free during beta