Privilege escalation in OpenSSH sshd-session on QNX 6 and SCO OpenServer 5

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

What is CVE-2026-106589?

CVE-2026-106589 is a vulnerability classified as Least Privilege Violation, affecting OpenSSH (affected versions: ≤ 10.6). This vulnerability is rated Low, with a CVSS score of 2.9. Current sources do not report this vulnerability as exploited.

Overview

Original source data

In sshd in OpenSSH through 10.6, in certain environments such as QNX 6 and SCO OpenServer 5, sshd-session can unexpectedly have root privileges. This is related to the GatewayPorts and StreamLocalForwarding configuration options, and lack of support for file-descriptor passing and unprivileged allocation of PTY devices.

Affected products and scope

OpenSSH up to and including 10.6, but only when running on QNX 6 or SCO OpenServer 5 with GatewayPorts or StreamLocalForwarding enabled. Mainstream Linux distributions, BSDs, macOS, and Windows (via OpenSSH for Windows) are not affected by this specific issue.

Technical details

The weakness is a least-privilege violation (CWE-272). When OpenSSH sets up port forwarding via GatewayPorts or StreamLocalForwarding, it relies on the operating system to support file-descriptor passing between processes and to allow unprivileged processes to allocate PTY devices. QNX 6 and SCO OpenServer 5 do not provide those capabilities in the expected form. As a result, the sshd-session process does not drop root privileges as intended after the initial privilege transition. The mechanism is specific to how those two platforms handle process resource inheritance and device allocation.

Exploitability

Local access is required. The attack complexity is high, meaning the attacker must navigate specific platform limitations to exploit the privilege retention. No authentication beyond local access is needed, and no user interaction is required. No public exploit is known, and no exploitation in the wild has been reported.

Technical impact

An attacker with local access on an affected system can potentially modify root-owned files or configuration during an active SSH session. The integrity impact is low: no data is exposed (no confidentiality impact) and services remain available. The scope does not extend beyond the local system.

Business impact

This affects a very narrow set of deployments: systems running QNX 6 or SCO OpenServer 5 with OpenSSH configured to use port forwarding. An attacker who already has local access to such a system could potentially write to or modify files owned by root during an SSH session, because the session process holds privileges it should not. The scope is limited to integrity of the local system; there is no impact on confidentiality or availability. For organisations that do not run these two operating systems, there is nothing to do.

Remediation

No specific patch is referenced in the record. For organisations running the affected platforms, disabling GatewayPorts and StreamLocalForwarding in the sshd configuration would remove the trigger for the privilege retention. For all other platforms, no action is needed.

Detection

Check the sshd configuration on any QNX 6 or SCO OpenServer 5 systems for the presence of GatewayPorts or StreamLocalForwarding directives. If either is set to yes or a non-empty value, the system is in scope. Review process logs for any anomalous root-owned file modifications correlated with SSH session activity. On unaffected platforms, this check is unnecessary.

Sources (8)
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.