Red Hat Security Advisory: libssh security update
🔗 CVE IDs covered (5)
📋 Description
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 products28
- Red Hat Enterprise Linux AppStream (v. 10)
- Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-0:0.12.0-2.el10.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-0:0.12.0-2.el10.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-0:0.12.0-2.el10.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-0:0.12.0-2.el10.src as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-0:0.12.0-2.el10.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-config-0:0.12.0-2.el10.noarch as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debuginfo-0:0.12.0-2.el10.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-debugsource-0:0.12.0-2.el10.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- libssh-devel-0:0.12.0-2.el10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-devel-0:0.12.0-2.el10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-devel-0:0.12.0-2.el10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 10)
- libssh-devel-0:0.12.0-2.el10.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
✅ 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: 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 (12)
- selfhttps://access.redhat.com/errata/RHSA-2026:18160
- externalhttps://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/10.2_release_notes/index
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- 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-133421
- externalhttps://issues.redhat.com/browse/RHEL-70825
- externalhttps://issues.redhat.com/browse/RHEL-93748
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_18160.json