Improper Preservation of Permissions Affecting openssh package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-OPENSSH-15924838
  • published7 Apr 2026
  • disclosed2 Apr 2026
  • creditChristos Papakonstantinou

Introduced: 2 Apr 2026

NewCVE-2026-35385  (opens in a new tab)
CWE-281  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Improper Preservation of Permissions in the scp when the legacy protocol option (-O) is used by a root user without preserving original file permissions (-p). An attacker can gain elevated privileges by supplying a malicious file that, when downloaded, is installed with setuid or setgid bits, allowing unintended execution with higher permissions.

CVSS Base Scores

version 4.0
version 3.1