Libssh vulnerabilities
We track 11 vulnerabilities in Libssh products. 11 are rated high or critical, and none are known to be exploited. The most recent was published on July 21, 2026.
Latest Libssh vulnerabilities
- 8.8 High severity
Red Hat Enterprise Linux 10: Incorrect Authorization
A flaw was found in libssh. On servers with GSSAPIKeyExchange enabled, the gssapi-keyex path does not verify whether the authenticated Kerberos principal is authorized for the requested local user, allowing authenticated clients to log in as arbitrary users.
- 7.5 High severity
Red Hat Enterprise Linux 10: Use After Free
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.
- 7.5 High severity
Red Hat Enterprise Linux 10: Loop with Unreachable Exit Condition
A flaw was found in libssh. Logic errors in automatic certificate-based public key authentication can cause libssh clients to loop indefinitely when configured certificates are missing or repeatedly rejected by a server, leading to denial of service.
- 7.5 High severity
Red Hat Enterprise Linux 10: Incorrect Check of Function Return Value
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.
- 7.3 High severity
Red Hat Enterprise Linux 10: Stack-based Buffer Overflow
A flaw was found in libssh. During SFTP server directory listing, the longname field is constructed with unsafe concatenation into a fixed-size stack buffer. When a client causes the server to list attacker-controlled filenames, sufficiently long names can ove
- 7.0 High severity
Red Hat Hardened Images: Uncontrolled Search Path Element
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 availab
- 8.2 High severity
Red Hat Enterprise Linux 10: Buffer Underwrite
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) authentic
- 7.5 High severity
libssh: Improper Restriction of Operations within the Bounds of a Memory Buffer
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
- 8.1 High severity
Red Hat Enterprise Linux 10: Return of Wrong Status Code
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 OpenSS
- 8.8 High severity
libssh: Incorrect Calculation
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
- 8.1 High severity
Red Hat Enterprise Linux 10: Out-of-bounds Read
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 a