CVE-2026-106589

openssh: OpenSSH: Privilege escalation via retained root privileges in sshd-session

Published Oct 6, 2026 CVSS 3.1 · 2.9 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

In OpenSSH through version 10.6, the sshd daemon can unintentionally obtain root privileges in operating systems such as QNX 6 and SCO OpenServer 5 when the GatewayPorts and StreamLocalForwarding options are enabled. The flaw arises because these platforms do not support file‑descriptor passing and do not allow unprivileged processes to allocate PTY devices, so the server runs with elevated rights without explicit root authorization. If an attacker can influence these settings or trigger the forward session, they may acquire full control over the host.

Affected Systems

The affected product is OpenBSD's OpenSSH implementation up to and including 10.6 on the QNX 6 and SCO OpenServer 5 platforms. Any installation running those operating systems with GatewayPorts or StreamLocalForwarding enabled is at risk. The vulnerability applies to all releases of OpenSSH 10.6 or earlier, as the fix was introduced after this version.

Risk and Exploitability

The CVSS score of 2.9 indicates a low overall impact, and the EPSS score of < 1% indicates a very low probability of exploitation. KEV entry is not listed. The attack vector is most likely remote via the SSH service: an attacker who can create a forwarding request or alter the configuration while authenticated with a low‑privileged account may trigger the privilege escalation. Because the flaw is limited to specific environments, the systemic risk is moderate, but the potential to achieve full root access mandates timely remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenSSH to version 10.7 or later, or apply the vendor‑supplied patch for 10.6.
  • Disable GatewayPorts and StreamLocalForwarding in sshd_config when they are not required.
  • Ensure the operating system applies its latest patch for PTY allocation and file‑descriptor handling; if the platform remains unsupported, consider upgrading the OS or isolating the SSH service.

Generated by OpenCVE AI on October 20, 2026 at 07:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Unintended Root Privileges via GatewayPorts and StreamLocalForwarding in OpenSSH 10.6 on QNX and SCO openssh: OpenSSH: Privilege escalation via retained root privileges in sshd-session
Weaknesses CWE-250
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Unintended Root Privileges via GatewayPorts and StreamLocalForwarding in OpenSSH 10.6 on QNX and SCO
Type Values Removed Values Added
Description 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.
First Time appeared Openbsd
Openbsd openssh
Weaknesses CWE-272
CPEs cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*
Vendors & Products Openbsd
Openbsd openssh
References
Metrics cvssV3_1

{'score': 2.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses
  • CWE-250

    Execution with Unnecessary Privileges

  • CWE-272

    Least Privilege Violation

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 7, 2026, 3:46 PM
Reserved
Oct 6, 2026, 9:21 PM
Status
Awaiting Analysis
Published
Oct 6, 2026, 10:17 PM
Modified
Oct 7, 2026, 4:17 PM
Severity
Low
Public date
Oct 6, 2026, 9:21 PM