Pre-authentication XMSS integer overflow causes memory corruption in OpenBSD OpenSSH

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

Overview

Original source data

OpenSSH 7.7 through 7.9 and 8.x before 8.1, when compiled with an experimental key type, has a pre-authentication integer overflow if a client or server is configured to use a crafted XMSS key. This leads to memory corruption and local code execution because of an error in the XMSS key parsing algorithm. NOTE: the XMSS implementation is considered experimental in all released OpenSSH versions, and there is no supported way to enable it when building portable OpenSSH.

Affected products and scope

  • OpenSSH 7.7 through 7.9 and OpenSSH 8.x before 8.1 are affected when compiled with the experimental XMSS key type and configured to use it. XMSS support is not compiled by default in portable OpenSSH, and no supported autoconf option exists to enable it.
  • Gentoo net-misc/openssh: versions >= 8.0_p1-r2 are listed as affected by the Gentoo advisory; versions >= 8.0_p1-r4 are listed as unaffected. This boundary is specific to the Gentoo package and does not replace checking builds from other distributors.
  • NetApp Cloud Backup and SteelStore Cloud Integrated Storage are listed as affected in the normalized record. The NetApp advisory confirms that multiple products incorporate OpenSSH, but the reviewed page does not provide exact release boundaries for these two products.
  • Siemens SCALANCE X204RNA firmware and SCALANCE X204RNA EEC firmware are listed as affected in the normalized record. The Siemens advisory identifies SCALANCE X204RNA HSR, PRP, EEC HSR, and EEC PRP variants at all versions < V3.2.7 as affected.

Technical details

The flaw is in OpenSSH's XMSS key parsing algorithm and occurs before authentication when the parser processes a specially crafted XMSS key. An invalid integer calculation can cause memory corruption and, under the required conditions, code execution with the privileges of the process parsing the key. The affected parsing code is used by the ssh, sshd, ssh-add, and ssh-keygen tools and services identified in the OpenSSH release notice. The SSD advisory further describes builds using the WITH_XMSS macro and ILP64, LLP64, or ILP32 data models, including 32-bit systems. XMSS is experimental, is not compiled in by default, and portable OpenSSH has no supported user-facing autoconf option to enable it. The reviewed sources do not establish the exact length field, arithmetic operation, or memory layout involved, so a specific overwrite primitive should not be inferred beyond the documented memory corruption.

Exploitability

A remote attacker may connect to a vulnerable OpenSSH server and send a specially crafted XMSS key before authentication, but this requires XMSS support to be compiled into the build and the deployment to use that key type. On the client side, a malicious server or key source may reach the vulnerable parser when the client is configured for XMSS; the reviewed sources do not fully document the exact client-side trigger sequence. The normalized scoring metadata labels the attack vector as local and requires low privileges, while the vendor and security advisories describe a pre-authentication network path to a server. Reachability should therefore be treated as deployment-dependent rather than assumed for every OpenSSH installation. No user interaction is required according to the structured record. The record marks a public exploit, and public sources document exploitability, but the reviewed evidence does not identify active exploitation, a specific campaign, or ransomware.

Technical impact

The flaw can corrupt memory in the key-parsing process and may enable code execution with the privileges of the OpenSSH process. For sshd, the result could affect SSH service availability, data accessible to that process, and system integrity; for client-side tools, impact may occur when the client processes untrusted XMSS data. The reviewed evidence does not show that the vulnerability automatically crosses the process privilege boundary or spreads to other systems. Exposure is substantially constrained by the requirement that XMSS be compiled and used, but embedded products still require separate assessment. Claims about disclosure, data modification, or denial of service in a particular product depend on its process privileges and integration of OpenSSH.

Business impact

  • An eligible OpenSSH server may be affected before authentication completes, increasing risk to network-accessible administration services.
  • Memory corruption may interrupt SSH service or enable code execution with the OpenSSH process's privileges; the evidence does not show that the flaw automatically escalates beyond those privileges.
  • NetApp states that successful exploitation in affected integrated products could disclose information, add or modify data, or cause denial of service.
  • On affected Siemens devices, code execution or denial of service could affect device management or operation, but the scope depends on process privileges and the product's OpenSSH integration.
  • XMSS is disabled by default in the builds described by the advisories, so business exposure is not equivalent to the total population running OpenSSH.

Remediation

  1. Upgrade OpenSSH to 8.1, the release identified as containing the fix, or deploy a vendor package with the corresponding backport. For branches or parallel packages not explicitly covered, confirm the fixed status with the vendor instead of assuming it.
  2. If an update cannot be applied immediately, disable the XMSS key type and prevent clients or servers from using it. Gentoo documents this as a workaround, but it does not remove the vulnerable parser from a custom build that can later re-enable XMSS.
  3. For Gentoo, update net-misc/openssh to >= 8.0_p1-r4, the unaffected boundary stated by the Gentoo advisory.
  4. For Siemens SCALANCE X204RNA and EEC variants, update firmware to V3.2.7 or a later version as specified by Siemens.
  5. While updating affected Siemens devices, restrict network access to the systems, especially 22/tcp and 443/tcp, to trusted IP addresses where operationally appropriate. This is interim mitigation and does not remove the parsing flaw.
  6. Include custom OpenSSH builds and integrated firmware in asset and patch management because checking only the operating system package may miss builds with XMSS enabled.

Detection

  • Inventory OpenSSH versions on servers, clients, jump hosts, and embedded devices, then compare them with the affected and fixed boundaries in the remediation section.
  • Determine whether XMSS support is present by reviewing build metadata, the WITH_XMSS macro, or the Gentoo xmss USE flag.
  • Review client and server configuration for use or acceptance of XMSS keys; XMSS being disabled by default is not proof that a custom build is safe.
  • Check the NetApp products listed in the affected record and Siemens SCALANCE X204RNA firmware, including EEC variants, rather than checking only the host operating system's OpenSSH package.
  • Verify the fixed package or firmware after updating. As a precaution, review unusual pre-authentication SSH connections, key parsing errors, or SSH process failures in deployments where XMSS is enabled. The reviewed sources provide no specific log signature or IOC, and absence of such events does not prove that a system is safe.
Sources (19)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.