CVEfocus › CVE database › CVE-2018-20685

CVE-2018-20685

CVSS 5.3 MediumEPSS 3.7% (higher than 90% of CVEs)Published 2019-01-10Updated 2025-12-17Assigner: mitre

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.

CWE-863

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

50Fixed
20Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2018-20685
Ubuntu 22.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2018-20685
Ubuntu 20.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2018-20685
Ubuntu 18.04opensshFixed1:7.6p1-4ubuntu0.2UBUNTU-CVE-2018-20685
Ubuntu 18.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2018-20685
Ubuntu 16.04opensshFixed1:7.2p2-4ubuntu2.7UBUNTU-CVE-2018-20685
Ubuntu 14.04opensshFixed1:6.6p1-2ubuntu2.12UBUNTU-CVE-2018-20685
Debian 14opensshFixed1:7.9p1-5DEBIAN-CVE-2018-20685
Debian 13opensshFixed1:7.9p1-5DEBIAN-CVE-2018-20685
Debian 12opensshFixed1:7.9p1-5DEBIAN-CVE-2018-20685
Red Hat Enterprise Linux 8opensshFixed0:8.0p1-3.el8RHSA-2019:3702
Red Hat Enterprise Linux 8openssh-askpassFixed0:8.0p1-3.el8RHSA-2019:3702
Red Hat Enterprise Linux 8openssh-cavsFixed0:8.0p1-3.el8RHSA-2019:3702
Red Hat Enterprise Linux 8openssh-clientsFixed0:8.0p1-3.el8RHSA-2019:3702
Red Hat Enterprise Linux 8openssh-keycatFixed0:8.0p1-3.el8RHSA-2019:3702
Red Hat Enterprise Linux 8openssh-ldapFixed0:8.0p1-3.el8RHSA-2019:3702
Red Hat Enterprise Linux 8openssh-serverFixed0:8.0p1-3.el8RHSA-2019:3702
Red Hat Enterprise Linux 8pam_ssh_agent_authFixed0:0.10.3-7.3.el8RHSA-2019:3702
Red Hat Enterprise Linux 7opensshWill not fix
Will not fix
Red Hat Enterprise Linux 7openssh-askpassWill not fix
Will not fix
Red Hat Enterprise Linux 7openssh-cavsWill not fix
Will not fix
Red Hat Enterprise Linux 7openssh-clientsWill not fix
Will not fix
Red Hat Enterprise Linux 7openssh-keycatWill not fix
Will not fix
Red Hat Enterprise Linux 7openssh-ldapWill not fix
Will not fix
Red Hat Enterprise Linux 7openssh-serverWill not fix
Will not fix
Red Hat Enterprise Linux 7openssh-server-sysvinitWill not fix
Will not fix
Red Hat Enterprise Linux 7pam_ssh_agent_authWill not fix
Will not fix
Red Hat Enterprise Linux 6opensshWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-askpassWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6pam_ssh_agent_authWill not fix
Out of support scope
Red Hat Enterprise Linux 5opensshWill not fix
Out of support scope
Rocky Linux 8opensshFixed0:8.0p1-30.el8_10RLSA-2019:3702
Alpine Linux 3.24dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.24opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.23dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.23opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.22dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.22opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.21dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.21opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.20dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.20opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.19dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.19opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.18dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.18opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.17dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.17opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.16dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.16opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.15dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.15opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.14dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.14opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.13dropbearFixed2020.79-r0ALPINE-CVE-2018-20685
Alpine Linux 3.13opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.12dropbearFixed2019.78-r1ALPINE-CVE-2018-20685
Alpine Linux 3.12opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.11dropbearFixed2019.78-r1ALPINE-CVE-2018-20685
Alpine Linux 3.11opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.10dropbearFixed2019.78-r1ALPINE-CVE-2018-20685
Alpine Linux 3.10opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.9dropbearFixed2018.76-r3ALPINE-CVE-2018-20685
Alpine Linux 3.9opensshFixed7.9_p1-r3ALPINE-CVE-2018-20685
Alpine Linux 3.8opensshFixed7.7_p1-r4ALPINE-CVE-2018-20685
Alpine Linux 3.7opensshFixed7.5_p1-r10ALPINE-CVE-2018-20685
Alpine Linux 3.6opensshFixed7.5_p1-r4ALPINE-CVE-2018-20685

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.