CVE catalog

CVE-2026-66032

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 authentica

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.45% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibssh2sid1.11.1-6fixed
Debianlibssh2forky1.11.1-6fixed
Debianlibssh2trixie1.11.1-1+deb13u2fixed
Debianlibssh2trixie-security1.11.1-1+deb13u1vulnerable
Debianlibssh2bookworm1.10.0-3vulnerable
Debianlibssh2bookworm-security1.10.0-3+deb12u1fixed
Ubuntulibssh2noble1.11.0-4.1ubuntu0.24.04.4fixed
Ubuntulibssh2-1-devnoble1.11.0-4.1ubuntu0.24.04.4fixed
Ubuntulibssh2-1t64noble1.11.0-4.1ubuntu0.24.04.4fixed
Ubuntulibssh2pro1.8.0-2.1build1vulnerable
Ubuntulibssh2pro1.8.0-2.1ubuntu0.1vulnerable
Ubuntulibssh2pro1.8.0-2.1ubuntu0.1+esm1fixed
Ubuntulibssh222.041.9.0-3vulnerable
Ubuntulibssh222.041.10.0-2vulnerable
Ubuntulibssh222.041.10.0-2build1vulnerable
Ubuntulibssh222.041.10.0-3vulnerable
Ubuntulibssh222.041.10.0-3ubuntu0.1fixed
Ubuntulibssh224.041.11.0-2vulnerable
Ubuntulibssh224.041.11.0-3vulnerable
Ubuntulibssh224.041.11.0-4vulnerable
Ubuntulibssh224.041.11.0-4.1build1vulnerable
Ubuntulibssh224.041.11.0-4.1build2vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.1vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.2vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.3vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.4fixed
Ubuntulibssh226.041.11.1-1build1vulnerable
Ubuntulibssh226.041.11.1-1build2vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.1vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.2vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.3vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.4fixed
Ubuntulibssh224.041.11.0-2vulnerable
Ubuntulibssh224.041.11.0-3vulnerable
Ubuntulibssh224.041.11.0-4vulnerable
Ubuntulibssh224.041.11.0-4.1build1vulnerable
Ubuntulibssh224.041.11.0-4.1build2vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.1vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.2vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.3vulnerable
Ubuntulibssh224.041.11.0-4.1ubuntu0.24.04.4fixed
Ubuntulibssh226.041.11.1-1build1vulnerable
Ubuntulibssh226.041.11.1-1build2vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.1vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.2vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.3vulnerable
Ubuntulibssh226.041.11.1-1ubuntu0.26.04.4fixed
Alpinelibssh23.211.11.1-r3fixed
Alpinelibssh23.221.11.1-r3fixed
Alpinelibssh23.231.11.1-r4fixed
Alpinelibssh23.241.11.1-r4fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibssh2sourcesid1.11.1-5not yet assignedNot reported[1142856]
Debianlibssh2sourceforky1.11.1-5not yet assignedNot reported[1142856]
Debianlibssh2sourcetrixie1.11.1-1+deb13u2not yet assignedNot reported[1142856]
Debianlibssh2sourcebookworm1.10.0-3+deb12u1not yet assignedNot reported[1142856]
Ubuntulibssh2debnoble1.11.0-4.1ubuntu0.24.04.4Not reportedNot reportedNot reported
Ubuntulibssh2-1-devdebnoble1.11.0-4.1ubuntu0.24.04.4Not reportedNot reportedNot reported
Ubuntulibssh2-1t64debnoble1.11.0-4.1ubuntu0.24.04.4Not reportedNot reportedNot reported
Ubuntulibssh2debpro1.8.0-2.1ubuntu0.1+esm1Not reportedUBUNTU-CVE-2026-66032Not reported
Ubuntulibssh2deb22.041.10.0-3ubuntu0.1Not reportedUBUNTU-CVE-2026-66032Not reported
Ubuntulibssh2deb24.041.11.0-4.1ubuntu0.24.04.4Not reportedUBUNTU-CVE-2026-66032Not reported
Ubuntulibssh2deb26.041.11.1-1ubuntu0.26.04.4Not reportedUBUNTU-CVE-2026-66032Not reported
Ubuntulibssh2deb24.041.11.0-4.1ubuntu0.24.04.4Not reportedUSN-8722-1Not reported
Ubuntulibssh2deb26.041.11.1-1ubuntu0.26.04.4Not reportedUSN-8722-1Not reported
Alpinelibssh2apk3.211.11.1-r3Not reportedALPINE-CVE-2026-66032Not reported
Alpinelibssh2apk3.221.11.1-r3Not reportedALPINE-CVE-2026-66032Not reported
Alpinelibssh2apk3.231.11.1-r4Not reportedALPINE-CVE-2026-66032Not reported
Alpinelibssh2apk3.241.11.1-r4Not reportedALPINE-CVE-2026-66032Not reported

[Debian bug #1142856]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libssh2-1]Affected

    Source package: [libssh2]

    Details (2)
    • 1.10.0-3+b1 · amd64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

    • 1.10.0-3+b1 · arm64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

  • [libssh2-1-dev]Affected

    Source package: [libssh2]

    Details (2)
    • 1.10.0-3+b1 · amd64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

    • 1.10.0-3+b1 · arm64 · bookworm

      Affected · Fixed: 1.10.0-3+deb12u1

      nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12

[Debian 13 (Trixie)]

  • [libssh2-1-dev]Affected

    Source package: [libssh2]

    Details (4)
    • 1.11.1-1+deb13u1 · amd64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · amd64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

  • [libssh2-1t64]Affected

    Source package: [libssh2]

    Details (4)
    • 1.11.1-1+deb13u1 · amd64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · amd64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

    • 1.11.1-1+deb13u1 · arm64 · trixie-security

      Affected · Fixed: 1.11.1-1+deb13u2

      nvd · libssh2 · debian · 13

Observed:

References