Multiple Releases of Same Resource or Handle Affecting libssh2 package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LIBSSH2-21248787
  • published19 Oct 2026
  • disclosed24 Jul 2026
  • creditUnknown

Introduced: 24 Jul 2026

CVE-2026-66032  (opens in a new tab)
CWE-1341  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Multiple Releases of Same Resource or Handle in the sftp_open function. An attacker can execute arbitrary code on the client system by enticing a user to connect to a specially crafted SSH server and initiate an SFTP transfer. This is only exploitable if the client connects to a malicious server and initiates an SFTP session.

Workaround

This vulnerability can be mitigated by restricting clients to connect only to fully trusted, internal SFTP servers and configuring dependent applications with Restart=on-failure in systemd to leverage memory protection and auto-recovery.

CVSS Base Scores

version 4.0
version 3.1