p PatchFirst

PatchFirst · Latest vulnerabilities

libssh vulnerabilities

Vulnerabilities published for libssh in the last 30 days: 0. Listed in the KEV catalogue: 0.

RSS ↗
Filter vulnerabilities
Clear filters

Vulnerabilities: 42

  1. CVE-2026-59850

    Medium · CVSS 4.3EPSS 0.35%Fix available

    Libssh: libssh: use-after-free via data callbacks on closed channels

    A flaw was found in libssh. If data packets are processed after a channel is closed, channel data callbacks can be invoked after the associated data has already been freed, leading to crashes or possible use-after-free conditions.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  2. CVE-2026-59847

    Medium · CVSS 5.9EPSS 0.33%Fix available

    Libssh: libssh: integrity downgrade via openssl aes-gcm tag verification

    A flaw was found in libssh. Incorrect AES-GCM finalization checks in builds using the OpenSSL backend can effectively remove integrity protection, allowing an in-path attacker to modify plaintext on the wire without detection.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  3. CVE-2026-59844

    Medium · CVSS 6.5EPSS 0.57%Fix available

    Libssh: libssh: denial of service via oversized sftp read length

    A flaw was found in libssh. A remote authenticated client can issue SSH_FXP_READ requests with an arbitrarily large length, causing a libssh SFTP server to allocate excessive memory and potentially exhaust it through repeated requests.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  4. CVE-2026-59845

    Medium · CVSS 5.3EPSS 0.1%Fix available

    Libssh: libssh: denial of service via unchecked proxycommand fork() failure

    A flaw was found in libssh. When ProxyCommand is used, an unchecked fork() failure can be stored as process ID -1; during cleanup, signals may then be sent across the caller's accessible process tree, leading to local denial of service.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  5. CVE-2026-59843

    Medium · CVSS 6.5EPSS 0.73%Fix available

    Libssh: libssh: denial of service via zero advertised channel packet size

    A flaw was found in libssh. A remote authenticated peer can advertise a zero maximum packet size in SSH_MSG_CHANNEL_OPEN, causing later channel writes to loop indefinitely and consume CPU, leading to denial of service.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  6. CVE-2026-0965

    Low · CVSS 3.3EPSS 0.16%Fix available

    Libssh: libssh: denial of service via improper configuration file handling

    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.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  7. CVE-2026-0967

    Low · CVSS 2.2EPSS 0.23%Fix available

    Libssh: libssh: denial of service via inefficient regular expression processing

    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.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  8. CVE-2026-0968

    Low · CVSS 3.1EPSS 0.46%Fix available

    Libssh: libssh: denial of service due to malformed sftp message

    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.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  9. CVE-2026-0964

    Medium · CVSS 5EPSS 0.42%Fix available

    Libssh: improper sanitation of paths received from scp servers

    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.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  10. CVE-2026-0966

    Medium · CVSS 6.5EPSS 0.6%Fix available

    Libssh: libssh: denial of service via zero-length input in ssh_get_hexa()

    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.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  11. CVE-2026-3731

    Medium · CVSS 6.9EPSS 1.2%Fix available

    libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds

    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.

    • Update to 0.10.6-0+deb12u3
    Published Updated
  12. CVE-2025-8277

    Low · CVSS 3.1EPSS 0.43%Fix available

    Libssh: memory exhaustion via repeated key exchange in libssh

    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.

    • Update to 0.10.6-0+deb12u2
    Published Updated
  13. CVE-2025-4877

    Medium · CVSS 4.5EPSS 0.2%Fix available

    Libssh: write beyond bounds in binary to base64 conversion functions

    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.

    • Update to 0.10.6-0+deb12u2
    Published Updated
  14. CVE-2025-8114

    Medium · CVSS 4.7EPSS 0.24%Fix available

    Libssh: null pointer dereference in libssh kex session id calculation

    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.

    • Update to 0.10.6-0+deb12u2
    Published Updated
  15. CVE-2025-4878

    Low · CVSS 3.6EPSS 0.23%Fix available

    Libssh: use of uninitialized variable in privatekey_from_file()

    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.

    • Update to 0.10.6-0+deb12u2
    Published Updated
  16. CVE-2025-5987

    High · CVSS 8.1EPSS 1.73%Fix available

    Libssh: invalid return code for chacha20 poly1305 with openssl backend

    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.

    • Update to 0.10.6-0+deb12u2
    Published Updated
  17. CVE-2025-5351

    Medium · CVSS 6.5EPSS 0.61%Fix available

    Libssh: double free vulnerability in libssh key export functions

    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.

    • Update to 0.10.6-0+deb12u2
    Published Updated
  18. CVE-2025-5372

    Medium · CVSS 5EPSS 0.5%Fix available

    Libssh: incorrect return code handling in ssh_kdf() in libssh

    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.

    • Update to 0.10.6-0+deb12u2
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →