Home / Openbsd / Openssh / CVE-2018-20685
CVE-2018-20685: is it exploited, and which versions of Openbsd Openssh are affected and fixed?
CVE-2018-20685 is an incorrect authorization vulnerability in Openbsd Openssh. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: openssh through 7.9, winscp through 5.13, cloud backup all versions and 37 more (NVD). Fixed in xcp2361, xcp3070 and 3.2.7 (NVD). Severity: Medium (5.3, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:26 UTC.
What is 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.
From the CVE record by mitre, last updated December 17, 2025, 21:53 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openbsd | openssh | through 7.9 | application |
| winscp | winscp | through 5.13 | application |
| netapp | cloud backup | all versions | application |
| netapp | element software | all versions | application |
| netapp | ontap select deploy | all versions | application |
| netapp | steelstore cloud integrated storage | all versions | application |
| netapp | storage automation store | all versions | application |
| debian | debian linux | 8.0 | operating system |
| debian | debian linux | 9.0 | operating system |
| canonical | ubuntu linux | 14.04 | operating system |
| canonical | ubuntu linux | 16.04 | operating system |
| canonical | ubuntu linux | 18.04 | operating system |
| canonical | ubuntu linux | 18.10 | operating system |
| redhat | enterprise linux | 7.0 | operating system |
| redhat | enterprise linux | 8.0 | operating system |
| redhat | enterprise linux eus | 8.1 | operating system |
| redhat | enterprise linux eus | 8.2 | operating system |
| redhat | enterprise linux eus | 8.4 | operating system |
| redhat | enterprise linux eus | 8.6 | operating system |
| redhat | enterprise linux server aus | 8.2 | operating system |
| redhat | enterprise linux server aus | 8.4 | operating system |
| redhat | enterprise linux server aus | 8.6 | operating system |
| redhat | enterprise linux server tus | 8.2 | operating system |
| redhat | enterprise linux server tus | 8.4 | operating system |
| redhat | enterprise linux server tus | 8.6 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 01:53 UTC.
How severe is CVE-2018-20685?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N | CISA-ADP |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N | NVD |
| Low 2.6 | CVSS 2.0 | AV:N/AC:H/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-20685 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, December 17, 2025)
- EPSS
- 3.68% probability of exploitation activity in the next 30 days, percentile 90.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-863 Incorrect Authorization
Where are the vendor advisories and references?
- DSA-4387 vendor-advisory
- USN-3885-1 vendor-advisory
- 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/
- 106531 vdb-entry
- https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
- GLSA-201903-16 vendor-advisory
- [debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update mailing-list
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
- RHSA-2019:3702 vendor-advisory
- GLSA-202007-53 vendor-advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
When was it published, and where is the official record?
- Reserved
- January 10, 2019
- Published
- January 10, 2019, 00:00 UTC
- CVE record updated
- December 17, 2025, 21:53 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:53 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:26 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Openssh?
- Nov 5, 2026CVE-2026-123158 OpenBSD OpenSSH: unexpected Status Code or Return Value exploited
- Oct 6, 2026CVE-2026-106583 OpenBSD OpenSSH: improper Control of Resource Identifiers
- Oct 6, 2026CVE-2026-106589 OpenBSD OpenSSH: least Privilege Violation
- Oct 6, 2026CVE-2026-106588 OpenBSD OpenSSH: improper Isolation or Compartmentalization
- Oct 6, 2026CVE-2026-106587 OpenBSD OpenSSH: type confusion
- Oct 6, 2026CVE-2026-106586 OpenBSD OpenSSH: always-incorrect control flow
- Oct 6, 2026CVE-2026-106585 OpenBSD OpenSSH: improper Handling of Highly Compressed Data (Data Amplification)
- Oct 6, 2026CVE-2026-106584 OpenBSD OpenSSH: off-by-one Error
Questions about CVE-2018-20685
Is CVE-2018-20685 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 3.68% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Openbsd Openssh are affected by CVE-2018-20685?
openssh through 7.9, winscp through 5.13, cloud backup all versions, element software all versions, ontap select deploy all versions, steelstore cloud integrated storage all versions and 34 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2018-20685?
xcp2361, xcp3070 and 3.2.7, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-20685?
Medium (5.3, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2018-20685?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.