<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2026-0140</id>
    <title>An update for libssh is now available for HCE 2.0</title>
    <severity>Important</severity>
    <release>HCE 2.0</release>
    <issued date="2026-05-21 10:29:41"/>
    <updated date="2026-05-21 10:29:41"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-0964" id="CVE-2026-0964" title="CVE-2026-0964 Base Score: 5.0 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-0967" id="CVE-2026-0967" title="CVE-2026-0967 Base Score: 2.2 Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-0968" id="CVE-2026-0968" title="CVE-2026-0968 Base Score: 3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-0965" id="CVE-2026-0965" title="CVE-2026-0965 Base Score: 3.3 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-0966" id="CVE-2026-0966" title="CVE-2026-0966 Base Score: 6.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-3731" id="CVE-2026-3731" title="CVE-2026-3731 Base Score: 7.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

A path traversal vulnerability exists in libssh when processing paths received from SCP servers. Attackers can bypass security restrictions by crafting malicious path parameters to access or manipulate file system paths beyond the intended scope. This vulnerability stems from insufficient validation and sanitization of filename paths returned by SCP servers. (CVE-2026-0964)

The function `match_pattern()` is used to match conditionals in client configuration files or known hosts against the hostname the client is connecting to.  When the configuration file or known_hosts file is controlled by the attacker, connecting to specific hostnames could cause timeouts and resource exhaustion due to the ineffective backtracking of complex regular expressions.  The pattern matching was modified to avoid the needless backtracing. (CVE-2026-0967)

No description is available for this CVE. (CVE-2026-0968)

libssh can try to open any file during configuration parsing, when misconfigured or when local attacker can provide malicious configuration. This applies for all configuration loaded from default location, configuration provided through the `ssh_config_parse_file()` and `ssh_bind_config_parse_file()` functions as well as configuration files included from them directly or through glob wildcards.  The possibly dangerous files involve block devices, fifo, named pipe or huge system files that could cause Denial of Service.  The solution here is allowing to read only regular files and enforcing configuration file size limit of 16MB. Currently, maximum line length of a configuration file is 1K so this will effectively mean configuration files of 16K lines should still keep working. (CVE-2026-0965)

A vulnerability was found in libssh (unknown version). It has been declared as problematic.The CWE definition for the vulnerability is CWE-120. The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.As an impact it is known to affect availability.There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product. (CVE-2026-0966)

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. (CVE-2026-3731)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="libssh">
        <name>HCE 2.0</name>
        <package arch="x86_64" name="libssh" version="0.9.6" release="2.r20.hce2">
          <filename>libssh-0.9.6-2.r20.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="libssh-devel" version="0.9.6" release="2.r20.hce2">
          <filename>libssh-devel-0.9.6-2.r20.hce2.x86_64.rpm</filename>
        </package>
        <package arch="noarch" name="libssh-help" version="0.9.6" release="2.r20.hce2">
          <filename>libssh-help-0.9.6-2.r20.hce2.noarch.rpm</filename>
        </package>
        <package arch="aarch64" name="libssh" version="0.9.6" release="2.r20.hce2">
          <filename>libssh-0.9.6-2.r20.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="libssh-devel" version="0.9.6" release="2.r20.hce2">
          <filename>libssh-devel-0.9.6-2.r20.hce2.aarch64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
