{"id":"CVE-2018-20685","state":"PUBLISHED","title":"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 per","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.","publishedAt":"2019-01-10T00:00:00.000Z","updatedAt":"2025-12-17T21:53:56.287Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"CISA-ADP"},"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["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"],"weaknesses":["CWE-863"],"ingestedAt":"2026-10-29T19:44:39.424Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/20xxx/CVE-2018-20685.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2018-20685","state":"PUBLISHED","datePublished":"2019-01-10T00:00:00.000Z","dateUpdated":"2025-12-17T21:53:56.287Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2019-01-10T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://www.debian.org/security/2019/dsa-4387","name":"DSA-4387","tags":["vendor-advisory"]},{"url":"https://usn.ubuntu.com/3885-1/","name":"USN-3885-1","tags":["vendor-advisory"]},{"url":"https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2"},{"url":"https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h"},{"url":"https://security.netapp.com/advisory/ntap-20190215-0001/"},{"url":"http://www.securityfocus.com/bid/106531","name":"106531","tags":["vdb-entry"]},{"url":"https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt"},{"url":"https://security.gentoo.org/glsa/201903-16","name":"GLSA-201903-16","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html","name":"[debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update","tags":["mailing-list"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"},{"url":"https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"},{"url":"https://access.redhat.com/errata/RHSA-2019:3702","name":"RHSA-2019:3702","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202007-53","name":"GLSA-202007-53","tags":["vendor-advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf"}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2022-12-13T00:00:00.000Z"},"datePublic":"2019-01-10T00:00:00.000Z"},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.debian.org/security/2019/dsa-4387","name":"DSA-4387","tags":["vendor-advisory","x_transferred"]},{"url":"https://usn.ubuntu.com/3885-1/","name":"USN-3885-1","tags":["vendor-advisory","x_transferred"]},{"url":"https://github.com/openssh/openssh-portable/commit/6010c0303a422a9c5fa8860c061bf7105eb7f8b2","tags":["x_transferred"]},{"url":"https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&r2=1.198&f=h","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20190215-0001/","tags":["x_transferred"]},{"url":"http://www.securityfocus.com/bid/106531","name":"106531","tags":["vdb-entry","x_transferred"]},{"url":"https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/201903-16","name":"GLSA-201903-16","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html","name":"[debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update","tags":["mailing-list","x_transferred"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html","tags":["x_transferred"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html","tags":["x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3702","name":"RHSA-2019:3702","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202007-53","name":"GLSA-202007-53","tags":["vendor-advisory","x_transferred"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T12:05:17.712Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","integrityImpact":"HIGH","userInteraction":"REQUIRED","attackComplexity":"HIGH","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-12-17T21:53:24.729008Z","id":"CVE-2018-20685","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","type":"CWE","lang":"en","description":"CWE-863 Incorrect Authorization"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-12-17T21:53:56.287Z"}}]}}}