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: 20

  1. CVE-2026-59845

    Medium · CVSS 5.3EPSS 0.1%No fix published

    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.

    Published Updated
  2. 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.6.3-4.3ubuntu0.6+esm4
    Published Updated
  3. 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.6.3-4.3ubuntu0.6+esm4
    Published Updated
  4. 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.6.3-4.3ubuntu0.6+esm4
    Published Updated
  5. 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.6.3-4.3ubuntu0.6+esm4
    Published Updated
  6. 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.6.3-4.3ubuntu0.6+esm4
    Published Updated
  7. 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.6.3-4.3ubuntu0.6+esm5
    Published Updated
  8. 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.6.3-4.3ubuntu0.6+esm2
    Published Updated
  9. 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.6.3-4.3ubuntu0.6+esm3
    Published Updated
  10. 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.6.3-4.3ubuntu0.6+esm2
    Published Updated
  11. CVE-2025-5372

    Medium · CVSS 5EPSS 0.5%No fix published

    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.

    Published Updated
  12. CVE-2025-5318

    Medium · CVSS 5.4EPSS 1.84%Fix available

    Libssh: out-of-bounds read in sftp_handle()

    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.

    • Update to 0.6.3-4.3ubuntu0.6+esm2
    Published Updated
  13. CVE-2023-6004

    Medium · CVSS 4.8EPSS 0.45%Fix available

    Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname

    A flaw was found in libssh. By utilizing the ProxyCommand or ProxyJump feature, users can exploit unchecked hostname syntax on the client. This issue may allow an attacker to inject malicious code into the command of the features mentioned through the hostname parameter.

    • Update to 0.6.3-4.3ubuntu0.6+esm1
    Published Updated
  14. CVE-2023-6918

    Low · CVSS 3.7EPSS 1.41%Fix available

    Libssh: missing checks for return values for digests

    A flaw was found in the libssh implements abstract layer for message digest (MD) operations implemented by different supported crypto backends. The return values from these were not properly checked, which could cause low-memory situations failures, NULL dereferences, crashes, or usage of the uninitialized memory as an input for the KDF. In this case, non-matching keys will result in decryption/integrity failures, terminating the connection.

    • Update to 0.6.3-4.3ubuntu0.6+esm1
    Published Updated

Check your server

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

Check your server →