CVE-2026-35385: CWE-281 Improper Preservation of Permissions in OpenBSD OpenSSH
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).
AI Analysis
Technical Summary
OpenSSH versions prior to 10.3 contain a vulnerability (CWE-281) related to improper preservation of file permissions during scp file transfers using the legacy protocol (-O) when executed as root without the -p option. Specifically, downloaded files may inadvertently be installed with setuid or setgid bits set, potentially allowing privilege escalation. This issue arises from the failure to correctly handle file mode preservation in this specific scenario. Red Hat has released security advisories and updates to fix this vulnerability in their supported OpenSSH packages.
Potential Impact
The vulnerability allows a file downloaded by scp under the specified conditions to be installed with elevated permissions (setuid or setgid), which can lead to privilege escalation on the affected system. This may enable an attacker or user to gain unauthorized elevated privileges, compromising system security. The CVSS v3.1 base score is 7.5, indicating a high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Red Hat has issued security advisories and patches that address this vulnerability. Users should apply the official OpenSSH updates provided by their vendor, such as those in Red Hat Enterprise Linux Extended Life Cycle Support Extension 6. The advisories and errata linked provide instructions for updating. Until patched, avoid using scp with the legacy protocol (-O) as root without the -p option to prevent unintended setuid/setgid file installations. Patch status is confirmed via vendor advisories; applying these updates mitigates the vulnerability.
CVE-2026-35385: CWE-281 Improper Preservation of Permissions in OpenBSD OpenSSH
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).
CVSS v3.1
Score 7.5high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenSSH versions prior to 10.3 contain a vulnerability (CWE-281) related to improper preservation of file permissions during scp file transfers using the legacy protocol (-O) when executed as root without the -p option. Specifically, downloaded files may inadvertently be installed with setuid or setgid bits set, potentially allowing privilege escalation. This issue arises from the failure to correctly handle file mode preservation in this specific scenario. Red Hat has released security advisories and updates to fix this vulnerability in their supported OpenSSH packages.
Potential Impact
The vulnerability allows a file downloaded by scp under the specified conditions to be installed with elevated permissions (setuid or setgid), which can lead to privilege escalation on the affected system. This may enable an attacker or user to gain unauthorized elevated privileges, compromising system security. The CVSS v3.1 base score is 7.5, indicating a high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Red Hat has issued security advisories and patches that address this vulnerability. Users should apply the official OpenSSH updates provided by their vendor, such as those in Red Hat Enterprise Linux Extended Life Cycle Support Extension 6. The advisories and errata linked provide instructions for updating. Until patched, avoid using scp with the legacy protocol (-O) as root without the -p option to prevent unintended setuid/setgid file installations. Patch status is confirmed via vendor advisories; applying these updates mitigates the vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-04-02T16:30:59.107Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-35385","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25063","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22468","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26528","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26542","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25044","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25181","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20040","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:12389","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13380","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19069","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13383","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21398","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22648","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22564","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:16059","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13381","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19219","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22329","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21298","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25096","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30078","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30089","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30088","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30087","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14937","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21275","vendor":"Red Hat"}]
Threat ID: 69cea98de6bfc5ba1defd64d
Added to database: 04/02/2026, 17:38:21 UTC
Last enriched: 07/16/2026, 08:57:07 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 1036
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.