Name
libssh
Version
0.10.6
Type
library
Description
Multiplatform C library implementing the SSHv2 and SSHv1 protocol
Licenses
LGPL-2.1-only
PURL
-
CPE
cpe:2.3:*:libssh:libssh:0.10.6:*:*:*:*:*:*:*
Other Versions#
Patches#
#
Title
Author
Resolve
1
CVE-2025-5318: sftpserver: Fix possible buffer overrun
Jakub Jelen <jjelen@redhat.com>
CVE-2025-5318
2
CVE-2026-0966 tests: Test coverage for ssh_get_hexa
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0966
3
CVE-2026-0966 doc: Update guided tour to use SHA256 fingerprints
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0966
4
CVE-2025-5351 pki_crypto: Avoid double-free on low-memory conditions
Jakub Jelen <jjelen@redhat.com>
CVE-2025-5351
5
sftp: Fix out-of-bound read from sftp extensions
Jakub Jelen <jjelen@redhat.com>
CVE-2026-3731
6
CVE-2025-8277: Fix memory leak of unused ephemeral key pair
Francesco Rollo <eferollo@gmail.com>
CVE-2025-8277
7
CVE-2026-0968 tests: Reproducer for invalid longname data
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0968
8
CVE-2025-8277: packet: Adjust packet filter to work when DH-GEX is
Jakub Jelen <jjelen@redhat.com>
CVE-2025-8277
9
tests/CMakeLists.txt: do not search ssh/sshd commands on host
Yi Zhao <yi.zhao@windriver.com>
10
CVE-2026-0966 misc: Avoid heap buffer underflow in ssh_get_hexa
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0966
11
CVE-2026-0965 config: Do not attempt to read non-regular and
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0965
12
CVE-2025-8114: Fix NULL pointer dereference after allocation
Andreas Schneider <asn@cryptomilk.org>
CVE-2025-8114
13
Reproducer for out of bounds read of SFTP extensions
Jakub Jelen <jjelen@redhat.com>
CVE-2026-3731
14
CVE-2026-0967 match: Avoid recursive matching (ReDoS)
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0967
15
CVE-2025-4878 Initialize pointers where possible
Jakub Jelen <jjelen@redhat.com>
CVE-2025-4878
16
CVE-2025-8277: mbedtls: Avoid leaking ecdh keys
Jakub Jelen <jjelen@redhat.com>
CVE-2025-8277
17
CVE-2026-0964 scp: Reject invalid paths received through scp
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0964
18
CVE-2025-4878 legacy: Properly check return value to avoid
Jakub Jelen <jjelen@redhat.com>
CVE-2025-4878
19
CVE-2025-4877 base64: Prevent integer overflow and potential OOB
Jakub Jelen <jjelen@redhat.com>
CVE-2025-4877
20
libgcrypt.c: Fix prototype of des3_encrypt/des3_decrypt
Khem Raj <raj.khem@gmail.com>
21
CVE-2025-5987 libcrypto: Correctly detect failures of chacha
Jakub Jelen <jjelen@redhat.com>
CVE-2025-5987
22
CVE-2025-5372 libgcrypto: Simplify error checking and handling of
Jakub Jelen <jjelen@redhat.com>
CVE-2025-5372
23
CVE-2025-8277: ecdh: Free previously allocated pubkeys
Jakub Jelen <jjelen@redhat.com>
CVE-2025-8277
24
CVE-2026-0968: sftp: Sanitize input handling in
Jakub Jelen <jjelen@redhat.com>
CVE-2026-0968
Vulnerabilities#
Name
Analysis
Description
Patched
A weakness has been identified in libssh up to 0.11.3. The impacted element is the function sftp_extensions_get_name/sftp_extensions_get_data of the file src/sftp.c of the component SFTP Extension Name Handler. Executing a manipulation of the argument idx can lead to out-of-bounds read. The attack may be performed from remote. Upgrading to version 0.11.4 and 0.12.0 is sufficient to resolve this issue. This patch is called 855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60. You should upgrade the affected component.
Patched
A flaw was found in libssh in which a malicious SFTP (SSH File Transfer Protocol) server can exploit this by sending a malformed 'longname' field within an `SSH_FXP_NAME` message during a file listing operation. This missing null check can lead to reading beyond allocated memory on the heap. This can cause unexpected behavior or lead to a denial of service (DoS) due to application crashes.
Patched
A flaw was found in libssh. A remote attacker, by controlling client configuration files or known_hosts files, could craft specific hostnames that when processed by the `match_pattern()` function can lead to inefficient regular expression backtracking. This can cause timeouts and resource exhaustion, resulting in a Denial of Service (DoS) for the client.
Patched
A flaw was found in libssh. The API function `ssh_get_hexa()` is vulnerable to a denial of service when processing zero-length input. This can be exploited remotely by an attacker during GSSAPI (Generic Security Service Application Program Interface) authentication if the server's logging verbosity is set to `SSH_LOG_PACKET (3)` or higher. Successful exploitation could lead to a self-Denial of Service of the per-connection daemon process.
Patched
A flaw was found in libssh where it can attempt to open arbitrary files during configuration parsing. A local attacker can exploit this by providing a malicious configuration file or when the system is misconfigured. This vulnerability could lead to a Denial of Service (DoS) by causing the system to try and access dangerous files, such as block devices or large system files, which can disrupt normal operations.
Patched
A malicious SCP server can send unexpected paths that could make the
client application override local files outside of working directory.
This could be misused to create malicious executable or configuration
files and make the user execute them under specific consequences.
This is the same issue as in OpenSSH, tracked as CVE-2019-6111.
Patched
A flaw was found in libssh's handling of key exchange (KEX) processes when a client repeatedly sends incorrect KEX guesses. The library fails to free memory during these rekey operations, which can gradually exhaust system memory. This issue can lead to crashes on the client side, particularly when using libgcrypt, which impacts application stability and availability.
Patched
A flaw was found in libssh, a library that implements the SSH protocol. When calculating the session ID during the key exchange (KEX) process, an allocation failure in cryptographic functions may lead to a NULL pointer dereference. This issue can cause the client or server to crash.
Patched
A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.
Patched
A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.
Patched
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
Patched
A flaw was found in the libssh library in versions less than 0.11.2. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.
Patched
A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failures or heap corruption.
Patched
There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory under allocation, when that happens it's possible that the program perform out of bounds write leading to a heap corruption.
This issue affects only 32-bits builds of libssh.
False Positive
A flaw was found in libssh. This vulnerability allows local man-in-the-middle attacks, security downgrades of SSH (Secure Shell) connections, and manipulation of trusted host information, posing a significant risk to the confidentiality, integrity, and availability of SSH communications via an insecure default configuration on Windows systems where the library automatically loads configuration files from the C:\etc directory, which can be created and modified by unprivileged local users.