CVE-2026-35385

OpenSSH: OpenSSH: Privilege escalation via scp legacy protocol when not preserving file mode

Published Apr 2, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
In OpenSSH before 10.3, a file downloaded by scp may be installed setuid or setgid, an outcome contrary to some users' expectations, if the download is performed as root with -O (legacy scp protocol) and without -p (preserve mode).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4584-1 openssh security update
Ubuntu USN Ubuntu USN USN-8222-1 OpenSSH vulnerabilities
Ubuntu USN Ubuntu USN USN-8514-1 OpenSSH vulnerability
Ubuntu USN Ubuntu USN USN-8514-2 OpenSSH vulnerability
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:12389 cve-icon
https://access.redhat.com/errata/RHSA-2026:13380 cve-icon
https://access.redhat.com/errata/RHSA-2026:13381 cve-icon
https://access.redhat.com/errata/RHSA-2026:13383 cve-icon
https://access.redhat.com/errata/RHSA-2026:14937 cve-icon
https://access.redhat.com/errata/RHSA-2026:16059 cve-icon
https://access.redhat.com/errata/RHSA-2026:19069 cve-icon
https://access.redhat.com/errata/RHSA-2026:19219 cve-icon
https://access.redhat.com/errata/RHSA-2026:20040 cve-icon
https://access.redhat.com/errata/RHSA-2026:21275 cve-icon
https://access.redhat.com/errata/RHSA-2026:21298 cve-icon
https://access.redhat.com/errata/RHSA-2026:21398 cve-icon
https://access.redhat.com/errata/RHSA-2026:22329 cve-icon
https://access.redhat.com/errata/RHSA-2026:22468 cve-icon
https://access.redhat.com/errata/RHSA-2026:22564 cve-icon
https://access.redhat.com/errata/RHSA-2026:22648 cve-icon
https://access.redhat.com/errata/RHSA-2026:25044 cve-icon
https://access.redhat.com/errata/RHSA-2026:25063 cve-icon
https://access.redhat.com/errata/RHSA-2026:25096 cve-icon
https://access.redhat.com/errata/RHSA-2026:25181 cve-icon
https://access.redhat.com/errata/RHSA-2026:26528 cve-icon
https://access.redhat.com/errata/RHSA-2026:26542 cve-icon
https://access.redhat.com/errata/RHSA-2026:28887 cve-icon
https://access.redhat.com/errata/RHSA-2026:28962 cve-icon
https://access.redhat.com/errata/RHSA-2026:30078 cve-icon
https://access.redhat.com/errata/RHSA-2026:30087 cve-icon
https://access.redhat.com/errata/RHSA-2026:30088 cve-icon
https://access.redhat.com/errata/RHSA-2026:30089 cve-icon
https://access.redhat.com/errata/RHSA-2026:34098 cve-icon
https://access.redhat.com/errata/RHSA-2026:58981 cve-icon
https://access.redhat.com/security/cve/CVE-2026-35385 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2454469 cve-icon
https://marc.info/?l=openssh-unix-dev&m=177513443901484&w=2 cve-icon cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2026-35385 cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-35385.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2026-35385 cve-icon
https://www.openssh.org/releasenotes.html#10.3p1 cve-icon cve-icon cve-icon
https://www.openwall.com/lists/oss-security/2026/04/02/3 cve-icon cve-icon cve-icon
History
Type Values Removed Values Added
Title Setuid/Setgid Elevation via scp in OpenSSH <10.3 OpenSSH: OpenSSH: Privilege escalation via scp legacy protocol when not preserving file mode
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Title Setuid/Setgid Elevation via scp in OpenSSH <10.3
Type Values Removed Values Added
Description In OpenSSH before 10.3, a file downloaded by scp may be installed setuid or setgid, an outcome contrary to some users' expectations, if the download is performed as root with -O (legacy scp protocol) and without -p (preserve mode).
First Time appeared Openbsd
Openbsd openssh
Weaknesses CWE-281
CPEs cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*
Vendors & Products Openbsd
Openbsd openssh
References
Metrics cvssV3_1

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

ssvc

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 1, 2026, 12:04 PM
Reserved
Apr 2, 2026, 4:30 PM
Status
Modified
Published
Apr 2, 2026, 5:16 PM
Modified
Sep 1, 2026, 1:19 PM
Severity
Important
Public date
Apr 2, 2026, 4:30 PM