CVE-2018-20685
No exploitation reported by the sources we read.
- Published2019-01-10
- WeaknessCWE-863
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2019-01-1021:29CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.9 | ≤ 7.9 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.4 | = 14.04 | no fix published | NVD |
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 18.10 | = 18.10 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.1 | = 8.1 | no fix published | NVD |
| 8.2 | = 8.2 | no fix published | NVD |
| 8.4 | = 8.4 | no fix published | NVD |
| 8.6 | = 8.6 | no fix published | NVD |
19 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- dropbearCleanStartall versions · fixed in 2020.79-r0
- dropbearAlpine:v3.25all versions · fixed in 2020.79-r0
- dropbearAlpine:v3.24all versions · fixed in 2020.79-r0
- dropbearAlpine:v3.23all versions · fixed in 2020.79-r0
- dropbearAlpine:v3.22all versions · fixed in 2020.79-r0
- dropbearAlpine:v3.21all versions · fixed in 2020.79-r0
- dropbearAlpine:v3.20all versions · fixed in 2020.79-r0
- dropbearAlpine:v3.19all versions · fixed in 2020.79-r0
78 more package ranges on OSV.dev
Vendor advisories
openssh: scp client improper directory name validation
openssh.src as a component of Red Hat Enterprise Linux 5 · openssh as a component of Red Hat Enterprise Linux 6 · openssh-askpass as a component of Red Hat Enterprise Linux 6 · +15 more
Siemens SCALANCE X-200RNA Switch Devices
SCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2) · SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2) · SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) · +2 more
SSA-412672: Multiple OpenSSL and OpenSSH Vulnerabilities in SCALANCE X-200RNA Switch Devices before V3.2.7
SCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2) · SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2) · SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) · +2 more
Red Hat Security Advisory: openssh security, bug fix, and enhancement update
Fix
- Vendor fix Siemens ProductCERT SSA-412672 · 5 productsUpdate to V3.2.7 or later version
- Vendor fix CISA ICSA-22-349-21 · 5 productsUpdate to V3.2.7 or later version
- Vendor fix Red Hat Product Security RHSA-2019:3702 · 105 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the OpenSSH server daemon (sshd) will be restarted automatically.
- Workaround from the vendor Red Hat Product Security RHSA-2019:3702 · 105 productsThis issue only affects the users of scp binary which is a part of openssh-clients package. Other usage of SSH protocol or other ssh clients is not affected. Administrators can uninstall openssh-clients for additional protection against accidental usage of this binary. Removing the openssh-clients …
- Mitigation from the vendor Siemens ProductCERT SSA-412672 · 5 productsRestrict access to the affected systems, especially to ports 22/tcp and 443/tcp to trusted IP addresses only
- Mitigation from the vendor Siemens ProductCERT SSA-412672 · 5 productsDeactivate the webserver if not required, and if deactivation is supported by the product
Advisories and patches
- cert-portal.siemens.comPatch
- cvsweb.openbsd.orgPatch
- github.comPatch
- sintonen.fiPatch
- www.oracle.comPatch
- www.oracle.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-12-17
- CISA-ADPCVSS 3.15.32025-12-17
- NVDCVSS 3.15.3read 2026-10-23
- NVDCVSS 2.02.6read 2026-10-23
- CISA-ADPweakness (CWE)CWE-8632025-12-17
- NVDweakness (CWE)CWE-863read 2026-10-23
- FIRST EPSSEPSS score3.7 %2026-12-04
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2018-13232same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-28hp-2gv6-gjp8same flawGitHub Advisory Database · CC-BY-4.0
- DLA-1728-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-4387-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2019-0067advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2019:0091-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11124-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2019:3702advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2019:3702advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2019:0125-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2019:0125-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2019:0126-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2019:0132-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2019:13931-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-3885-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
- Published
- 2019-01-10
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-28hp-2gv6-gjp8
Frequently asked questions
What is CVE-2018-20685?
Is CVE-2018-20685 actively exploited?
What is the CVSS score for CVE-2018-20685?
Running OpenSSH? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-28hp-2gv6-gjp8
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0