CVE-2026-35385: Privilege escalation through legacy scp download permissions in OpenSSH
- Vendor
- Openbsd
OpenSSH before version 10.3 incorrectly handles file permissions when scp downloads files as root using the legacy SCP protocol (-O) without preserve mode (-p). Downloaded files may be installed with setuid or setgid permission bits despite preservation of file modes not being requested. An attacker able to influence the downloaded file and its permissions could introduce an unintended privileged file, potentially enabling privilege escalation.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Affected downloads can create files with unexpected setuid or setgid permissions on the receiving system. If an attacker-controlled executable is installed with these permissions and subsequently executed under conditions that honor the privilege bits, it may execute with elevated user or group privileges, potentially including root privileges. The permission-handling flaw alone does not establish immediate code execution.
Mitigation
If you can’t patch tonight, do this now.
Avoid legacy SCP protocol mode and use SFTP-based scp transfers where supported. Perform downloads with a non-root account, then validate ownership and permissions before installing files with elevated privileges. Inspect downloaded files for unexpected setuid or setgid bits and remove them before use. Enabling preserve mode is not a general safeguard for untrusted downloads because it intentionally preserves source permissions.
Remediation
Patch, then assume compromise.
Upgrade OpenSSH to version 10.3 or later, or install the operating-system vendor's security update containing a backported fix. Photon OS 5.0 provides corrected OpenSSH packages in version 9.3p2-21.ph5. Ubuntu fixes include 1:8.2p1-4ubuntu0.13+esm2 for Ubuntu 20.04 LTS, 1:7.6p1-4ubuntu0.7+esm5 for Ubuntu 18.04 LTS, and 1:6.6p1-2ubuntu2.13+esm3 for Ubuntu 14.04 LTS; these require Ubuntu Pro, with the Legacy Support add-on additionally required for Ubuntu 14.04. Audit files previously obtained through root-run legacy SCP downloads and remove unintended setuid or setgid bits.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-35385 exploited in the wild?
- As of Nov 14, 2026, Mallory has no reports of CVE-2026-35385 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-35385?
- As of Nov 14, 2026, Mallory has found no public exploit for CVE-2026-35385.
- Is there a patch for CVE-2026-35385?
- Upgrade OpenSSH to version 10.3 or later, or install the operating-system vendor's security update containing a backported fix. Photon OS 5.0 provides corrected OpenSSH packages in version 9.3p2-21.ph5.
- What products are affected by CVE-2026-35385?
- Openbsd Openssh.
- How severe is CVE-2026-35385?
- CVE-2026-35385 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 0.75% (51st percentile) as of Nov 14, 2026.
Recent activity
47 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.