The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-35385

CVE-2026-35385: OpenSSH Privilege Escalation Vulnerability

CVE-2026-35385 is a privilege escalation vulnerability in OpenSSH before 10.3 where scp may incorrectly install files with setuid or setgid permissions. This article covers the technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-35385 Overview

A file permission vulnerability exists in OpenSSH before version 10.3 that affects the scp file transfer utility. When downloading files as root using the legacy SCP protocol (-O flag) without the preserve mode flag (-p), downloaded files may unexpectedly retain setuid or setgid permissions. This behavior contradicts expected security practices where privileged file permissions should be stripped during transfers, potentially allowing privilege escalation if malicious files are downloaded and subsequently executed.

Critical Impact

Files downloaded via SCP as root may retain dangerous setuid/setgid permissions, enabling local privilege escalation if malicious binaries are transferred and executed on the target system.

Affected Products

  • OpenSSH versions before 10.3
  • Systems using SCP with legacy protocol mode (-O flag)
  • Environments performing SCP transfers as root without preserve mode (-p)

Discovery Timeline

  • 2026-04-02 - CVE CVE-2026-35385 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-35385

Vulnerability Analysis

This vulnerability falls under CWE-281 (Improper Preservation of Permissions) and represents an improper permissions handling flaw in OpenSSH's SCP implementation. The issue specifically manifests when root users utilize the legacy SCP protocol without enabling preserve mode.

The core problem lies in how the SCP client handles file permission bits during downloads. Under normal circumstances, security-conscious systems should strip dangerous permission bits like setuid (SUID) and setgid (SGID) from downloaded files to prevent privilege escalation attacks. However, when the -O flag is used to invoke the legacy SCP protocol and the -p flag is omitted, OpenSSH fails to properly sanitize these permission bits.

The network-based attack requires user interaction since an administrator must actively perform the SCP transfer with the vulnerable configuration. However, the potential impact is severe—an attacker who can control files on a remote server could craft malicious setuid binaries that, when downloaded by a privileged user, would execute with elevated privileges.

Root Cause

The vulnerability stems from improper permission preservation logic in OpenSSH's legacy SCP protocol implementation. When transferring files using the -O (legacy protocol) flag, the SCP client copies file permissions from the remote source without adequately filtering setuid and setgid bits. The absence of the -p (preserve mode) flag should trigger default permission handling that strips these dangerous bits, but the implementation fails to do so in this specific scenario.

Attack Vector

The attack requires the following conditions to be present:

  1. A victim administrator performs an SCP download operation as the root user
  2. The -O flag is specified to use the legacy SCP protocol
  3. The -p flag is NOT used (no explicit preserve mode)
  4. The attacker controls the source file on the remote server and has set malicious setuid/setgid permissions
  5. The downloaded file is subsequently executed on the target system

A successful exploitation would result in the attacker's malicious binary executing with elevated privileges (root if setuid-root), potentially leading to complete system compromise.

Detection Methods for CVE-2026-35385

Indicators of Compromise

  • Presence of unexpected setuid/setgid binaries in directories commonly used for SCP downloads
  • System logs showing SCP transfers executed as root with the -O flag
  • Newly created executable files with the 4755 or 2755 permission modes in user-writable locations
  • Process execution traces showing privilege escalation from recently downloaded files

Detection Strategies

  • Monitor scp command executions for the combination of root privilege, -O flag, and absence of -p flag
  • Implement file integrity monitoring to detect unexpected setuid/setgid files appearing on the system
  • Configure audit rules to log all file permission changes involving setuid or setgid bits
  • Review SSH and SCP logs for downloads performed with legacy protocol mode

Monitoring Recommendations

  • Enable auditd rules to track chmod, chown, and file creation events involving special permission bits
  • Deploy endpoint detection to alert on SCP operations performed as root with the vulnerable flag combination
  • Regularly scan the filesystem for setuid/setgid binaries and compare against a known-good baseline
  • Monitor for unusual process privilege elevations that may indicate exploitation of downloaded malicious binaries

How to Mitigate CVE-2026-35385

Immediate Actions Required

  • Upgrade OpenSSH to version 10.3 or later where this vulnerability has been addressed
  • Avoid running SCP transfers as root whenever possible; use non-privileged accounts
  • When root SCP transfers are necessary, always include the -p flag to invoke proper permission handling
  • Discontinue use of the legacy SCP protocol (-O flag) in favor of the modern SFTP-based implementation

Patch Information

OpenSSH has released version 10.3p1 which addresses this permission handling vulnerability. Organizations should update to this version or later as soon as possible. Detailed information about the fix can be found in the OpenSSH Release Notes 10.3p1.

Additional technical discussion is available on the OpenSSH Development Discussion mailing list and the Openwall OSS-Security Mailing List Update.

Workarounds

  • Always use the -p flag when performing SCP transfers as root to ensure proper permission handling
  • Avoid using the legacy SCP protocol (-O flag) and instead rely on the default SFTP-based transfer mechanism
  • Implement post-transfer scripts that automatically strip setuid/setgid bits from downloaded files
  • Use rsync or sftp as alternatives to SCP for secure file transfers that need proper permission handling
bash
# Configuration example
# Safer SCP usage - always include -p flag when transferring as root
scp -p user@remote:/path/to/file /local/destination/

# Post-download permission sanitization
find /download/directory -type f \( -perm -4000 -o -perm -2000 \) -exec chmod ug-s {} \;

# Use SFTP instead of legacy SCP protocol
sftp user@remote:/path/to/file /local/destination/

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechOpenssh

  • SeverityHIGH

  • CVSS Score7.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-281
  • Technical References
  • OpenSSH Development Discussion

  • OpenSSH Release Notes 10.3p1

  • Openwall OSS-Security Mailing List Update
  • Related CVEs
  • CVE-2026-35388: OpenSSH Privilege Escalation Vulnerability

  • CVE-2023-28531: OpenSSH Privilege Escalation Vulnerability

  • CVE-2023-51384: OpenSSH Privilege Escalation Vulnerability

  • CVE-2021-41617: OpenSSH Privilege Escalation Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English