CVE-2018-20685
published medium CVSS 3.1 · 5.3openssh: scp client improper directory name validation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2019-1216 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Debian | jessie | openssh | Advisory build | 1:6.7p1-5+deb8u8 | DLA-1728-1 |
| Oracle Linux | 8 | opensshaarch64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Red Hat Enterprise Linux | RHEL-8 | opensshaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Alpine Linux | edge | openssh | Fixed | 7.9_p1-r3 | Package fix record |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.10 | dropbear | Fixed | 2019.78-r1 | Package fix record |
| Alpine Linux | v3.10 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.11 | dropbear | Fixed | 2019.78-r1 | Package fix record |
| Alpine Linux | v3.11 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.12 | dropbear | Fixed | 2019.78-r1 | Package fix record |
| Alpine Linux | v3.12 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.13 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.13 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.14 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.14 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.15 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.15 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.16 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.16 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.17 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.17 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.18 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.18 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.19 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.19 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.20 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.20 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.21 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.21 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.22 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.22 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.23 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.23 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.24 | dropbear | Fixed | 2020.79-r0 | Package fix record |
| Alpine Linux | v3.24 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Alpine Linux | v3.6 | openssh | Fixed | 7.5_p1-r4 | Package fix record |
| Alpine Linux | v3.7 | openssh | Fixed | 7.5_p1-r10 | Package fix record |
| Alpine Linux | v3.8 | openssh | Fixed | 7.7_p1-r4 | Package fix record |
| Alpine Linux | v3.9 | dropbear | Fixed | 2018.76-r3 | Package fix record |
| Alpine Linux | v3.9 | openssh | Fixed | 7.9_p1-r3 | Package fix record |
| Debian | stretch | openssh | Advisory build | 1:7.4p1-10+deb9u5 | DSA-4387-1 |
| Oracle Linux | 8 | opensshx86_64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-askpassaarch64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-askpassx86_64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-cavsaarch64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-cavsx86_64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-clientsaarch64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-clientsx86_64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-keycataarch64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-keycatx86_64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-ldapaarch64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-ldapx86_64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-serveraarch64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | openssh-serverx86_64 | Advisory build | 0:8.0p1-3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | pam_ssh_agent_authaarch64 | Advisory build | 0:0.10.3-7.3.el8 | ELSA-2019-3702 |
| Oracle Linux | 8 | pam_ssh_agent_authx86_64 | Advisory build | 0:0.10.3-7.3.el8 | ELSA-2019-3702 |
| Red Hat Enterprise Linux | RHEL-8 | opensshppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | opensshs390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | opensshsrc | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | opensshx86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpasss390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpassx86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfoppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfos390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-askpass-debuginfox86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavss390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavsx86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavs-debuginfoaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavs-debuginfoppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavs-debuginfos390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-cavs-debuginfox86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clientsaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clientsppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clientss390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clientsx86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clients-debuginfoaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clients-debuginfoppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clients-debuginfos390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-clients-debuginfox86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debuginfoaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debuginfoppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debuginfos390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debuginfox86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debugsourceaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debugsourceppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debugsources390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-debugsourcex86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycataarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycatppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycats390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycatx86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycat-debuginfoaarch64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycat-debuginfoppc64le | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycat-debuginfos390x | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux | RHEL-8 | openssh-keycat-debuginfox86_64 | Advisory build | 8.0p1-3.el8 | RHSA-2019:3702 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-863 CWE-863 Incorrect Authorization
References
14- 106531 http://www.securityfocus.com/bid/106531
- RHSA-2019:3702 https://access.redhat.com/errata/RHSA-2019:3702
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
- https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h
- https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2
- [debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html
- GLSA-201903-16 https://security.gentoo.org/glsa/201903-16
- GLSA-202007-53 https://security.gentoo.org/glsa/202007-53
- https://security.netapp.com/advisory/ntap-20190215-0001/
- https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
- USN-3885-1 https://usn.ubuntu.com/3885-1/
- DSA-4387 https://www.debian.org/security/2019/dsa-4387
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 25ee747d1c24f79d9ee770224c738142e51afdc49314bfa676d5f731e40af573
- Ingested
- 23 Sep 2026, 07:44:24 UTC
- Source record
- Official CVE record