VOOZH about

URL: https://nvd.nist.gov/vuln/detail/CVE-2018-20685

⇱ NVD - CVE-2018-20685


  1. Vulnerabilities

CVE-2018-20685 Detail

Modified After Enrichment

This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.

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.


Metrics

 
NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
http://www.securityfocus.com/bid/106531 CVE, MITRE Broken Link 
https://access.redhat.com/errata/RHSA-2019:3702 CVE, MITRE Third Party Advisory 
https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf CVE, MITRE Patch  Third Party Advisory 
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h CVE, MITRE Patch 
https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2 CVE, MITRE Patch 
https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html CVE, MITRE Mailing List  Third Party Advisory 
https://security.gentoo.org/glsa/201903-16 CVE, MITRE Third Party Advisory 
https://security.gentoo.org/glsa/202007-53 CVE, MITRE Third Party Advisory 
https://security.netapp.com/advisory/ntap-20190215-0001/ CVE, MITRE Third Party Advisory 
https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt CVE, MITRE Patch  Third Party Advisory 
https://usn.ubuntu.com/3885-1/ CVE, MITRE Third Party Advisory 
https://www.debian.org/security/2019/dsa-4387 CVE, MITRE Third Party Advisory 
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html CVE, MITRE Patch  Third Party Advisory 
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html CVE, MITRE Patch  Third Party Advisory 

Weakness Enumeration

CWE-ID CWE Name Source
CWE-863 Incorrect Authorization πŸ‘ cwe source acceptance level
NIST  
CISA-ADP  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

24 change records found show changes

CVE Modified by CISA-ADP 6/16/2026 9:53:19 PM

Action Type Old Value New Value
Added SSVC
{"timestamp":"2025-12-17T21:53:24.729008Z","id":"CVE-2018-20685","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}


CVE Modified by MITRE 6/16/2026 9:53:19 PM

Action Type Old Value New Value
Added Affected
[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]


CVE Modified by CISA-ADP 12/17/2025 5:15:55 PM

Action Type Old Value New Value
Added CVSS V3.1
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N


Added CWE
CWE-863


CVE Modified by CVE 11/20/2024 11:01:59 PM

Action Type Old Value New Value
Added Reference
http://www.securityfocus.com/bid/106531


Added Reference
https://access.redhat.com/errata/RHSA-2019:3702


Added Reference
https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf


Added Reference
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h


Added Reference
https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2


Added Reference
https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html


Added Reference
https://security.gentoo.org/glsa/201903-16


Added Reference
https://security.gentoo.org/glsa/202007-53


Added Reference
https://security.netapp.com/advisory/ntap-20190215-0001/


Added Reference
https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt


Added Reference
https://usn.ubuntu.com/3885-1/


Added Reference
https://www.debian.org/security/2019/dsa-4387


Added Reference
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html


Added Reference
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html


CVE Modified by MITRE 5/14/2024 1:14:51 AM

Action Type Old Value New Value

Modified Analysis by NIST 2/23/2023 6:15:18 PM

Action Type Old Value New Value
Added CVSS V3.1
NIST AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N


Removed CVSS V3
NIST AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N


Changed CPE Configuration
OR
 *cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*


OR
 *cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_eus:8.1:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_eus:8.2:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_eus:8.6:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_server_aus:8.2:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_server_aus:8.4:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_server_aus:8.6:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_server_tus:8.2:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_server_tus:8.4:*:*:*:*:*:*:*
 *cpe:2.3:o:redhat:enterprise_linux_server_tus:8.6:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp2361
 OR
 cpe:2.3:h:fujitsu:m10-1:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp3070
 OR
 cpe:2.3:h:fujitsu:m10-1:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp2361
 OR
 cpe:2.3:h:fujitsu:m10-4:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp3070
 OR
 cpe:2.3:h:fujitsu:m10-4:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp2361
 OR
 cpe:2.3:h:fujitsu:m10-4s:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp3070
 OR
 cpe:2.3:h:fujitsu:m10-4s:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp3070
 OR
 cpe:2.3:h:fujitsu:m10-4s:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp2361
 OR
 cpe:2.3:h:fujitsu:m12-1:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp3070
 OR
 cpe:2.3:h:fujitsu:m12-1:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp2361
 OR
 cpe:2.3:h:fujitsu:m12-2:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp3070
 OR
 cpe:2.3:h:fujitsu:m12-2:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp2361
 OR
 cpe:2.3:h:fujitsu:m12-2s:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:* versions up to (excluding) xcp3070
 OR
 cpe:2.3:h:fujitsu:m12-2s:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:siemens:scalance_x204rna_eec_firmware:*:*:*:*:*:*:*:* versions up to (excluding) 3.2.7
 OR
 cpe:2.3:h:siemens:scalance_x204rna_eec:-:*:*:*:*:*:*:*


Added CPE Configuration
AND
 OR
 *cpe:2.3:o:siemens:scalance_x204rna_firmware:*:*:*:*:*:*:*:* versions up to (excluding) 3.2.7
 OR
 cpe:2.3:h:siemens:scalance_x204rna:-:*:*:*:*:*:*:*


Changed Reference Type
http://www.securityfocus.com/bid/106531 Third Party Advisory, VDB Entry


http://www.securityfocus.com/bid/106531 Broken Link


Changed Reference Type
https://access.redhat.com/errata/RHSA-2019:3702 No Types Assigned


https://access.redhat.com/errata/RHSA-2019:3702 Third Party Advisory


Changed Reference Type
https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf No Types Assigned


https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf Patch, Third Party Advisory


Changed Reference Type
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h Patch, Third Party Advisory


https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h Patch


Changed Reference Type
https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2 Patch, Third Party Advisory


https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2 Patch


Changed Reference Type
https://security.gentoo.org/glsa/202007-53 No Types Assigned


https://security.gentoo.org/glsa/202007-53 Third Party Advisory


Changed Reference Type
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html Patch


https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html Patch, Third Party Advisory


Changed Reference Type
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html No Types Assigned


https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html Patch, Third Party Advisory


CVE Modified by MITRE 12/13/2022 7:15:25 AM

Action Type Old Value New Value
Added Reference
https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf [No Types Assigned]


CWE Remap by NIST 8/24/2020 1:37:01 PM

Action Type Old Value New Value
Changed CWE
CWE-706


CWE-863


CVE Modified by MITRE 7/28/2020 5:15:13 PM

Action Type Old Value New Value
Added Reference
https://security.gentoo.org/glsa/202007-53 [No Types Assigned]


Removed Reference
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-20685 [Issue Tracking, Patch, Third Party Advisory]


CVE Modified by MITRE 11/05/2019 8:15:18 PM

Action Type Old Value New Value
Added Reference
https://access.redhat.com/errata/RHSA-2019:3702 [No Types Assigned]


CVE Modified by MITRE 10/16/2019 2:15:19 PM

Action Type Old Value New Value
Added Reference
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html [No Types Assigned]


CWE Remap by NIST 10/02/2019 8:03:26 PM

Action Type Old Value New Value
Changed CWE
CWE-284
CWE-284


CWE-706


Modified Analysis by NIST 4/25/2019 8:55:29 AM

Action Type Old Value New Value
Added CPE Configuration
OR
 *cpe:2.3:o:oracle:solaris:10:*:*:*:*:*:*:*


Added CPE Configuration
OR
 *cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*


Changed Reference Type
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html No Types Assigned


https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html Patch


CVE Modified by MITRE 4/23/2019 3:32:01 PM

Action Type Old Value New Value
Added Reference
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html [No Types Assigned]


Modified Analysis by NIST 3/29/2019 4:02:39 PM

Action Type Old Value New Value
Changed CPE Configuration
OR
 *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*


OR
 *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
 *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*


Changed Reference Type
https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html No Types Assigned


https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html Mailing List, Third Party Advisory


Changed Reference Type
https://security.gentoo.org/glsa/201903-16 No Types Assigned


https://security.gentoo.org/glsa/201903-16 Third Party Advisory


CVE Modified by MITRE 3/25/2019 12:29:03 PM

Action Type Old Value New Value
Added Reference
https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html [No Types Assigned]


CVE Modified by MITRE 3/21/2019 12:00:37 PM

Action Type Old Value New Value
Added Reference
https://security.gentoo.org/glsa/201903-16 [No Types Assigned]


Modified Analysis by NIST 2/26/2019 4:24:08 PM

Action Type Old Value New Value
Changed CPE Configuration
OR
 *cpe:2.3:a:openbsd:openssh:7.9:*:*:*:*:*:*:*


OR
 *cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* versions up to (including) 7.9
 *cpe:2.3:a:winscp:winscp:*:*:*:*:*:*:*:* versions up to (including) 5.13


Added CPE Configuration
OR
 *cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:*
 *cpe:2.3:a:netapp:element_software:-:*:*:*:*:*:*:*
 *cpe:2.3:a:netapp:ontap_select_deploy:-:*:*:*:*:*:*:*
 *cpe:2.3:a:netapp:steelstore_cloud_integrated_storage:-:*:*:*:*:*:*:*
 *cpe:2.3:a:netapp:storage_automation_store:-:*:*:*:*:*:*:*


Added CPE Configuration
OR
 *cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
 *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
 *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
 *cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*


Added CPE Configuration
OR
 *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*


Changed Reference Type
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-20685 Patch, Third Party Advisory


https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-20685 Issue Tracking, Patch, Third Party Advisory


Changed Reference Type
https://security.netapp.com/advisory/ntap-20190215-0001/ No Types Assigned


https://security.netapp.com/advisory/ntap-20190215-0001/ Third Party Advisory


Changed Reference Type
https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt No Types Assigned


https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt Patch, Third Party Advisory


Changed Reference Type
https://usn.ubuntu.com/3885-1/ No Types Assigned


https://usn.ubuntu.com/3885-1/ Third Party Advisory


Changed Reference Type
https://www.debian.org/security/2019/dsa-4387 No Types Assigned


https://www.debian.org/security/2019/dsa-4387 Third Party Advisory


CVE Modified by MITRE 2/16/2019 6:29:00 AM

Action Type Old Value New Value
Added Reference
https://security.netapp.com/advisory/ntap-20190215-0001/ [No Types Assigned]


CVE Modified by MITRE 2/10/2019 6:29:00 AM

Action Type Old Value New Value
Added Reference
https://www.debian.org/security/2019/dsa-4387 [No Types Assigned]


CVE Modified by MITRE 2/09/2019 6:29:09 AM

Action Type Old Value New Value
Added Reference
https://usn.ubuntu.com/3885-1/ [No Types Assigned]


CVE Modified by MITRE 1/31/2019 1:29:00 PM

Action Type Old Value New Value
Changed 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.


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.


Added Reference
https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt [No Types Assigned]


Initial Analysis by NIST 1/29/2019 10:46:11 AM

Action Type Old Value New Value
Added CVSS V3
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N


Added CVSS V2
(AV:N/AC:H/Au:N/C:N/I:P/A:N)


Added CWE
CWE-284


Added CPE Configuration
OR
 *cpe:2.3:a:openbsd:openssh:7.9:*:*:*:*:*:*:*


Added Reference
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-20685 [Patch, Third Party Advisory]


Changed Reference Type
http://www.securityfocus.com/bid/106531 No Types Assigned


http://www.securityfocus.com/bid/106531 Third Party Advisory, VDB Entry


Changed Reference Type
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h No Types Assigned


https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h Patch, Third Party Advisory


Changed Reference Type
https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2 No Types Assigned


https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2 Patch, Third Party Advisory


Added CVSS V2 Metadata
Victim must voluntarily interact with attack mechanism


CVE Modified by MITRE 1/12/2019 6:29:01 AM

Action Type Old Value New Value
Added Reference
http://www.securityfocus.com/bid/106531 [No Types Assigned]


Quick Info

CVE Dictionary Entry:
CVE-2018-20685
NVD Published Date:
01/10/2019
NVD Last Modified:
06/16/2026
Source:
MITRE