Public Date:
1665785: CVE-2018-20685 openssh: scp client improper directory name validation

The MITRE CVE dictionary describes this issue as:

In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended access restrictions via the filename of . or an empty filename. The impact is modifying the permissions of the target directory on the client side.

Find out more about CVE-2018-20685 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue affects the scp client shipped with openssh. The SSH protocol or the SSH client is not affected. For more detailed analysis please refer to:

CVSS v3 metrics

NOTE: The following CVSS v3 metrics and score provided are preliminary and subject to review.

CVSS3 Base Score 5.3
CVSS3 Base Metrics CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack Vector Network
Attack Complexity High
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality High
Integrity Impact None
Availability Impact None

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 7 openssh Affected
Red Hat Enterprise Linux 6 openssh Will not fix
Red Hat Enterprise Linux 5 openssh Will not fix

External References

Last Modified

CVE description copyright © 2017, The MITRE Corporation