CVE-2018-20685
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | openssh-ssh1 | Will 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.04 | openssh-ssh1 | Will 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.04 | openssh-ssh1 | Will 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.04 | openssh | Fixed | 1:7.6p1-4ubuntu0.2 | UBUNTU-CVE-2018-20685 |
| Ubuntu 18.04 | openssh-ssh1 | Will 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.04 | openssh | Fixed | 1:7.2p2-4ubuntu2.7 | UBUNTU-CVE-2018-20685 |
| Ubuntu 14.04 | openssh | Fixed | 1:6.6p1-2ubuntu2.12 | UBUNTU-CVE-2018-20685 |
| Debian 14 | openssh | Fixed | 1:7.9p1-5 | DEBIAN-CVE-2018-20685 |
| Debian 13 | openssh | Fixed | 1:7.9p1-5 | DEBIAN-CVE-2018-20685 |
| Debian 12 | openssh | Fixed | 1:7.9p1-5 | DEBIAN-CVE-2018-20685 |
| Red Hat Enterprise Linux 8 | openssh | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-askpass | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-cavs | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-clients | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-keycat | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-ldap | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-server | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | pam_ssh_agent_auth | Fixed | 0:0.10.3-7.3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 7 | openssh | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-askpass | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-cavs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-clients | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-keycat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-ldap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-server | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-server-sysvinit | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | pam_ssh_agent_auth | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | openssh | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-askpass | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-clients | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-ldap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | pam_ssh_agent_auth | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | openssh | Will not fix Out of support scope | ||
| Rocky Linux 8 | openssh | Fixed | 0:8.0p1-30.el8_10 | RLSA-2019:3702 |
| Alpine Linux 3.24 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.24 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.23 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.23 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.22 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.22 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.21 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.21 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.20 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.20 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.19 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.19 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.18 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.18 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.17 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.17 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.16 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.16 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.15 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.15 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.14 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.14 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.13 | dropbear | Fixed | 2020.79-r0 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.13 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.12 | dropbear | Fixed | 2019.78-r1 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.12 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.11 | dropbear | Fixed | 2019.78-r1 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.11 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.10 | dropbear | Fixed | 2019.78-r1 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.10 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.9 | dropbear | Fixed | 2018.76-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.9 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.8 | openssh | Fixed | 7.7_p1-r4 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.7 | openssh | Fixed | 7.5_p1-r10 | ALPINE-CVE-2018-20685 |
| Alpine Linux 3.6 | openssh | Fixed | 7.5_p1-r4 | ALPINE-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:
- https://www.debian.org/security/2019/dsa-4387 (vendor-advisory)
- https://usn.ubuntu.com/3885-1/ (vendor-advisory)
- https://security.gentoo.org/glsa/201903-16 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:3702 (vendor-advisory)
- https://security.gentoo.org/glsa/202007-53 (vendor-advisory)
References
- https://www.debian.org/security/2019/dsa-4387
- https://usn.ubuntu.com/3885-1/
- https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2
- https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h
- https://security.netapp.com/advisory/ntap-20190215-0001/
- http://www.securityfocus.com/bid/106531
- https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
- https://security.gentoo.org/glsa/201903-16
- https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
- https://access.redhat.com/errata/RHSA-2019:3702
- https://security.gentoo.org/glsa/202007-53
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
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.