CVE-2018-20685
CVE-2018-20685
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 5.3 · Medium · EPSS 3.7% · Fix available
- Published
- Updated
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
openssh Debian:12
- Affected ranges
- ECOSYSTEM: < 1:7.9p1-5
Update to 1:7.9p1-5
openssh Debian:13
- Affected ranges
- ECOSYSTEM: < 1:7.9p1-5
Update to 1:7.9p1-5
openssh Debian:14
- Affected ranges
- ECOSYSTEM: < 1:7.9p1-5
Update to 1:7.9p1-5
openssh Ubuntu:14.04:LTS
- Versions
- 1:6.2p2-6
- 1:6.2p2-6ubuntu1
- 1:6.4p1-1
- 1:6.4p1-2
- 1:6.5p1-1
- 1:6.5p1-2
- 1:6.5p1-3
- 1:6.5p1-4
- 1:6.5p1-6
- 1:6.6p1-1
- 1:6.6p1-2
- 1:6.6p1-2ubuntu1
- 1:6.6p1-2ubuntu2
- 1:6.6p1-2ubuntu2.2
- 1:6.6p1-2ubuntu2.3
- 1:6.6p1-2ubuntu2.4
- 1:6.6p1-2ubuntu2.6
- 1:6.6p1-2ubuntu2.7
- 1:6.6p1-2ubuntu2.8
- 1:6.6p1-2ubuntu2.10
- 1:6.6p1-2ubuntu2.11
- Affected ranges
- ECOSYSTEM: < 1:6.6p1-2ubuntu2.12
Update to 1:6.6p1-2ubuntu2.12
openssh Ubuntu:16.04:LTS
- Versions
- 1:6.9p1-2
- 1:6.9p1-3
- 1:7.1p1-1
- 1:7.1p1-3
- 1:7.1p1-4
- 1:7.1p1-6
- 1:7.1p2-1
- 1:7.1p2-2
- 1:7.2p1-1
- 1:7.2p2-1
- 1:7.2p2-2
- 1:7.2p2-3
- 1:7.2p2-4
- 1:7.2p2-4ubuntu1
- 1:7.2p2-4ubuntu2.1
- 1:7.2p2-4ubuntu2.2
- 1:7.2p2-4ubuntu2.4
- 1:7.2p2-4ubuntu2.5
- 1:7.2p2-4ubuntu2.6
- Affected ranges
- ECOSYSTEM: < 1:7.2p2-4ubuntu2.7
Update to 1:7.2p2-4ubuntu2.7
openssh Ubuntu:Pro:FIPS-updates:16.04:LTS
- Versions
- 1:7.2p2-4ubuntu2.fips.2.2.3
- 1:7.2p2-4ubuntu2.fips.2.4.1
- 1:7.2p2-4ubuntu2.fips.2.4.2
- Affected ranges
- ECOSYSTEM: < 1:7.2p2-4ubuntu2.fips.2.8.1
Update to 1:7.2p2-4ubuntu2.fips.2.8.1
openssh Ubuntu:Pro:FIPS:16.04:LTS
- Versions
- 1:7.2p2-4ubuntu2.fips.2.2
- 1:7.2p2-4ubuntu2.fips.2.2.1
- Affected ranges
- ECOSYSTEM: < 1:7.2p2-4ubuntu2.fips.2.10.1
Update to 1:7.2p2-4ubuntu2.fips.2.10.1
openssh Ubuntu:18.04:LTS
- Versions
- 1:7.5p1-10
- 1:7.6p1-4
- 1:7.6p1-4ubuntu0.1
- Affected ranges
- ECOSYSTEM: < 1:7.6p1-4ubuntu0.2
Update to 1:7.6p1-4ubuntu0.2
openssh-ssh1 Ubuntu:18.04:LTS
- Versions
- 1:7.5p1-8
- 1:7.5p1-9
- 1:7.5p1-9build1
- 1:7.5p1-10
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
openssh-ssh1 Ubuntu:20.04:LTS
- Versions
- 1:7.5p1-11build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
openssh-ssh1 Ubuntu:22.04:LTS
- Versions
- 1:7.5p1-12
- 1:7.5p1-12build1
- 1:7.5p1-13
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
openssh-ssh1 Ubuntu:24.04:LTS
- Versions
- 1:7.5p1-14
- 1:7.5p1-15
- 1:7.5p1-15build1
- 1:7.5p1-16
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2018-20685