Skip to main content

OpenSSH CVE-2026-35385

| EUVDEUVD-2026-18398 HIGH
Improper Preservation of Permissions (CWE-281)
2026-04-02 mitre GHSA-jgqr-738j-43cg
8.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker controls or compromises source SSH server
  2. Delivery
    Root victim runs scp -O without -p
  3. Exploit
    Server advertises setuid/setgid mode bits
  4. Execution
    File written locally as setuid-root binary
  5. Persist
    Low-privileged user executes binary
  6. Impact
    Local privilege escalation to root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Permission preservation
Exploitation Conditions

Exploitation requires all of the following concrete conditions drawn from the description: the scp transfer must be performed by root; the legacy SCP protocol must be selected with the -O flag; the -p (preserve mode) flag must NOT be used; and the remote file source must be attacker-influenced (a malicious or compromised SSH server, or a MITM position on the transfer) so it can advertise setuid/setgid mode bits. Limiting factors that reduce real-world risk: it does not affect the default SFTP-based scp behavior (only the explicitly opted-in legacy -O path), it requires the victim to be root, it requires the victim to initiate the download (user action), and the resulting setuid/setgid binary must subsequently be executed to realize privilege escalation. These preconditions make widespread or automated exploitation unlikely despite the high impact rating.

Impact

Signals are mixed and point to a real-but-conditional risk rather than an urgent mass-exploitation event. The published CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N, C:H/I:H/A:H = 8.1) reflects total technical impact, but the AC:H and the omission of user interaction understate the operational preconditions: the description explicitly requires root to run scp with -O and without -p against a hostile file source, which is closer to a user-driven/local-trigger scenario than a fully remote unauthenticated attack - the UI:N in the official vector is questionable and should be treated as UI:R. EPSS is 0.04% (11th percentile) and SSVC marks Exploitation 'none' and Automatable 'no', consistent with the absence of any known POC or KEV listing. Net: high severity if the rare flag/role combination is in use, but low probability of opportunistic, automated exploitation. Note the discrepancy explicitly - CVSS implies remote unauthenticated network attack, while the description implies a privileged local operator must opt into legacy behavior; verify with the OpenSSH release notes before treating this as a remote-unauth issue.

Exploit ScenarioDerived

An administrator runs scp as root with the legacy -O flag (and without -p) to fetch a tool or binary from a server an attacker controls or has compromised. The malicious server marks the transferred file with the setuid-root bit, so it lands on the admin's host as a setuid-root executable; a low-privileged local user (or the attacker via a planted payload) then runs it to gain root. No public POC is currently identified, and the CVSS AC:H reflects the precise flag-and-role combination required.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv6 – Jun 30, 2026

Privilege-escalation exposure in OpenSSH before 10.3 (fixed in 10.3p1) where scp, when run by root using the legacy SCP protocol flag -O and without -p (preserve mode), may write a downloaded file with setuid or setgid bits set, contrary to user expectation. A malicious or compromised SSH server (or a man-in-the-middle on the transfer) could thereby cause an attacker-controlled binary to land on disk as a setuid/setgid-root executable, enabling local privilege escalation when it is later run. There is no public exploit identified at time of analysis, EPSS is very low (0.04%), and CISA SSVC rates exploitation as 'none' though technical impact as 'total'.

Earlier versions of this analysis (5)
v5 Jun 30, 2026 - 04:40 cvss changed CVSS 8.1

Improper permission preservation in OpenSSH's scp client (all versions before 10.3) can leave a downloaded file with setuid or setgid bits set when root runs scp using the legacy SCP protocol (-O) without the preserve-mode flag (-p). A malicious or compromised remote server can thereby plant a setuid/setgid binary on the client host, creating a local privilege-escalation primitive contrary to operator expectations. EPSS is negligible (0.04%), there is no public exploit identified at time of analysis, and CISA SSVC rates exploitation as 'none', though technical impact is assessed as total.

v4 Jun 30, 2026 - 04:39 cvss changed CVSS 8.1

Improper permission preservation in OpenSSH before 10.3 lets the scp client retain setuid/setgid bits on a downloaded file when the transfer is run as root using the legacy SCP protocol (-O) without preserve-mode (-p), unexpectedly creating privileged binaries on the receiving host. A malicious or compromised SCP server can leverage this to drop a setuid/setgid file owned by root, creating a local privilege-escalation primitive. There is no public exploit identified at time of analysis, EPSS is very low (0.04%), and CISA SSVC rates exploitation as 'none', so this is a hardening/correctness fix rather than an actively exploited threat.

v3 Jun 30, 2026 - 04:38 cvss changed CVSS 8.1

Incorrect permission preservation in OpenSSH scp before version 10.3 can cause downloaded files to be written with setuid or setgid bits set, enabling local privilege escalation. The flaw triggers only when a root user copies a file using the legacy scp protocol flag (-O) without the preserve-mode flag (-p), allowing a malicious or compromised remote server to land a setuid/setgid file on the victim host. There is no public exploit identified at time of analysis and CISA SSVC rates exploitation as none, but the technical impact is rated total because an unexpected setuid root file is a direct path to local code execution.

v2 Apr 27, 2026 - 14:14 cvss changed CVSS 7.5

File permission escalation in OpenSSH legacy scp allows remote attackers to install setuid/setgid binaries when downloading files as root. OpenSSH versions before 10.3 are affected when using legacy scp protocol (-O flag) without -p (preserve mode). Attack requires high complexity and user interaction (CVSS AC:H/UI:R) but achieves complete system compromise if successful. EPSS score of 0.04% (11th percentile) indicates low predicted exploitation probability. SSVC framework confirms no active exploitation, non-automatable attack, but total technical impact. Vendor patch released in OpenSSH 10.3p1.

v1 Apr 02, 2026 - 17:00 CVSS 7.5

OpenSSH's legacy scp protocol (pre-10.3) can install downloaded files with elevated setuid/setgid permissions when root users transfer files with -O flag without -p. This enables privilege escalation vectors if attackers control file server content or conduct man-in-the-middle attacks (CVSS AV:N/AC:H/UI:R). No public exploit identified at time of analysis, though exploitation probability is moderate given the specific configuration requirements (root usage, legacy protocol flag, missing preserve-mode flag).

RemediationAI

Vendor-released patch: upgrade to OpenSSH 10.3 / 10.3p1 or later (per https://www.openssh.org/releasenotes.html#10.3p1), or apply your distribution's fixed package - Ubuntu USN-8222-1 and the Red Hat RHSA errata listed above deliver the backported fix. Until patched, the practical compensating controls map directly to the trigger conditions: avoid using the legacy SCP protocol flag -O when running scp as root, since the modern SFTP-based default transfer is not affected (trade-off: scripts pinned to -O for compatibility with old servers must be reviewed); do not run scp as root against untrusted or third-party servers, instead pull files as an unprivileged user and chown/chmod afterward; and if -O must be used, always pass -p so mode handling is explicit, or post-process downloads to strip setuid/setgid bits (e.g. chmod a-st on the destination) before any execution. Auditing for unexpected setuid/setgid files (find / -perm -4000 -o -perm -2000) is advisable on hosts where root-initiated legacy scp downloads may have already occurred.

Affected VersionsENISA

OpenSSH 0 <10.3

Affected Packages

euvd openssh fix: 10.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenSSH's scp historically used the legacy SCP/RCP wire protocol, selectable via the -O flag after newer releases defaulted to SFTP. In that legacy mode the remote side transmits file metadata including permission bits. Normally scp only honors transmitted modes when -p (preserve) is requested; the defect (CWE-281, Improper Preservation of Permissions) is that under the specific combination of running as root with -O and without -p, the setuid (04000) and setgid (02000) bits can be applied to the resulting local file even though the user did not ask to preserve modes. The affected component is the OpenBSD OpenSSH client (cpe:2.3:a:openbsd:openssh) across all versions below 10.3. Because setuid/setgid-root binaries execute with elevated privileges regardless of the invoking user, an unexpectedly setuid file sourced from an untrusted server becomes a direct privilege-escalation primitive.

Know when Openssh gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Attacker needs no local privileges (PR:N) but root must actively run scp with legacy -O and no -p against a hostile source, so UI:R and AC:H; setuid-root outcome yields full C/I/A impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 7.5 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

9
Analysis Updated
Jun 30, 2026 - 04:40 vuln.today
v6 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:40 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:39 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:38 vuln.today
v3 - CVSS changed
CVSS changed
Jun 30, 2026 - 03:24 NVD
7.5 (HIGH) 8.1 (HIGH)
Analysis Updated
Apr 27, 2026 - 14:14 vuln.today
v2 - CVSS changed
Analysis Updated
Apr 16, 2026 - 06:08 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
10.3
CVE Published
Apr 02, 2026 - 16:30 nvd
HIGH 7.5

DescriptionNVD

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).

Executive ViewAI

Why It Matters

OpenSSH versions before 10.3 contain a privilege escalation vulnerability in the scp utility that could allow attackers to place root-level executable code on systems through compromised SSH connections or network interception. Organizations running OpenSSH below version 10.3 with root-level scp operations face potential local privilege escalation risks and should prioritize patching.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Until patching is complete, restrict use of the legacy SCP protocol (-O flag) in root-executed scp commands and ensure SSH server access is limited to trusted networks with additional transport-layer security monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
Ubiquitous
OpenSSH is the de facto SSH implementation on nearly all Unix/Linux systems
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-38408 CRITICAL POC
9.8 Jul 20

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot

CVE-2023-25136 MEDIUM POC
6.5 Feb 03

OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se

CVE-2016-6210 MEDIUM POC
5.9 Feb 13

sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static

CVE-2015-5600 HIGH POC
8.1 Aug 03

The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin

CVE-2016-6515 HIGH POC
7.5 Aug 07

The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a

CVE-2026-123158 HIGH POC
8.1 Nov 05

Password authentication bypass in OpenSSH sshd before 10.6p2 built against musl libc without PAM lets a remote, unauthen

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2025-26465 MEDIUM
6.8 Feb 18

A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. Rated medium severity (CVSS 6.8), this

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2016-0777 MEDIUM
6.5 Jan 14

The resend_bytes function in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2 allows remote serv

CVE-2016-3115 MEDIUM POC
6.4 Mar 22

Multiple CRLF injection vulnerabilities in session.c in sshd in OpenSSH before 7.2p2 allow remote authenticated users to

Vendor StatusVendor

SUSE

Severity: High
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed
SLES15-SP6-CHOST-BYOS-EC2 Fixed

References

Advisories & patches
ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-35385 ADVISORY https://ubuntu.com/security/notices/USN-8222-1 ADVISORY https://vuldb.com/vuln/354929 REF https://access.redhat.com/errata/RHSA-2026:12389 REF https://access.redhat.com/errata/RHSA-2026:13380 REF https://access.redhat.com/errata/RHSA-2026:13381 REF https://access.redhat.com/errata/RHSA-2026:13383 REF https://access.redhat.com/errata/RHSA-2026:14937 REF https://access.redhat.com/errata/RHSA-2026:16059 REF https://access.redhat.com/errata/RHSA-2026:19069 REF https://access.redhat.com/errata/RHSA-2026:19219 REF https://access.redhat.com/errata/RHSA-2026:20040 REF https://access.redhat.com/errata/RHSA-2026:21275 REF https://access.redhat.com/errata/RHSA-2026:21298 REF https://access.redhat.com/errata/RHSA-2026:21398 REF https://access.redhat.com/errata/RHSA-2026:22329 REF https://access.redhat.com/errata/RHSA-2026:22468 REF https://access.redhat.com/errata/RHSA-2026:22564 REF https://access.redhat.com/errata/RHSA-2026:22648 REF https://access.redhat.com/errata/RHSA-2026:25044 REF https://access.redhat.com/errata/RHSA-2026:25063 REF https://access.redhat.com/errata/RHSA-2026:25096 REF https://access.redhat.com/errata/RHSA-2026:25181 REF https://access.redhat.com/errata/RHSA-2026:26528 REF https://access.redhat.com/errata/RHSA-2026:26542 REF https://access.redhat.com/errata/RHSA-2026:28887 REF https://access.redhat.com/errata/RHSA-2026:28962 REF https://access.redhat.com/errata/RHSA-2026:30078 REF https://access.redhat.com/errata/RHSA-2026:30087 REF https://access.redhat.com/errata/RHSA-2026:30088 REF https://access.redhat.com/errata/RHSA-2026:30089 REF https://access.redhat.com/errata/RHSA-2026:34098 REF https://access.redhat.com/errata/RHSA-2026:58981 REF https://access.redhat.com/security/cve/CVE-2026-35385 REF https://bugzilla.redhat.com/show_bug.cgi?id=2454469 REF https://marc.info/?l=openssh-unix-dev&m=177513443901484&w=2 REF https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-35385.json REF https://www.openssh.org/releasenotes.html#10.3p1 REF https://www.openwall.com/lists/oss-security/2026/04/02/3

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy