Red Hat Security Advisory: libssh security update
🔗 CVE IDs covered (10)
📋 Description
CVE-2025-4877 — libssh: Write beyond bounds in binary to base64 conversion functions CVE-2025-4878 — libssh: Use of uninitialized variable in privatekey_from_file() CVE-2025-5351 — libssh: Double Free Vulnerability in libssh Key Export Functions CVE-2025-8114 — libssh: NULL Pointer Dereference in libssh KEX Session ID Calculation CVE-2025-8277 — libssh: Memory Exhaustion via Repeated Key Exchange in libssh CVE-2026-0964 — libssh: Improper sanitation of paths received from SCP servers CVE-2026-0965 — libssh: libssh: Denial of Service via improper configuration file handling CVE-2026-0966 — libssh: libssh: Denial of Service via zero-length input in ssh_get_hexa() CVE-2026-0967 — libssh: libssh: Denial of Service via inefficient regular expression processing CVE-2026-0968 — libssh: libssh: Denial of Service due to malformed SFTP message
🎯 Affected products34
- Red Hat Enterprise Linux AppStream (v. 9)
- Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-0:0.10.4-18.el9.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-0:0.10.4-18.el9.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-0:0.10.4-18.el9.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-0:0.10.4-18.el9.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-0:0.10.4-18.el9.src as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-0:0.10.4-18.el9.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-config-0:0.10.4-18.el9.noarch as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.i686 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debuginfo-0:0.10.4-18.el9.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.i686 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- libssh-debugsource-0:0.10.4-18.el9.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- libssh-devel-0:0.10.4-18.el9.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- +4 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. Administrators should apply vendor-supplied patches as soon as they become available. Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. It is strongly advised to apply updated libssh packages once available to prevent memory exhaustion risks on client systems. Workaround: Do not use SCP! SCP is deprecated for several years and will be removed in future releases! If you have to, the application MUST validate the path returned from `ssh_scp_request_get_filename()` is the path the application requested. The libssh does not do any writing in this case. Workaround: Ensure the client and server are using only regular files as configuration. Workaround: Applications using libssh should avoid passing zero-length input to ssh_get_hexa(), ssh_get_fingerprint_hash(), and ssh_print_hexa(). For the remotely reachable GSSAPI authentication path, disable GSSAPI authentication in the affected libssh-based application if it is not required, or configure that application's libssh logging verbosity below SSH_LOG_PACKET (3). These measures address the GSSAPI logging path; they do not prevent other callers from passing zero-length input to the affected functions. Configuration and any required restart depend on the application using libssh. Changing the host's OpenSSH sshd_config or restarting the OpenSSH sshd service is not a general mitigation for applications using libssh. Apply the relevant vendor update containing the fix. Upstream fixed this issue in libssh 0.11.4 and 0.12.0; distribution packages may include a backported fix. Workaround: Avoid using complex patterns in configuration files and known_hosts. Workaround: A workaround suggested by upstream is to properly verify the identity of SFTP servers before connecting to them, as exploitation requires a libssh client to initiate a connection to a malicious or compromised SFTP server. Restricting SFTP connections to trusted and verified servers reduces the risk of exposure. The upstream project has issued fixed releases (libssh 0.11.4 and 0.12.0); updating to a version that includes the fix resolves the issue.
🔗 References (15)
- selfhttps://access.redhat.com/errata/RHSA-2026:18683
- externalhttps://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.8_release_notes/index
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2369367
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2376184
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2376193
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2383220
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2383888
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2433121
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2436979
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2436980
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2436981
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2436982
- externalhttps://issues.redhat.com/browse/RHEL-150661
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_18683.json