In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended…
Priority LOW 30CWE-863Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 2 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-863.
Summary
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.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.03681 89th percentileScored 2026-11-07
Fix Partial Red Hat: 1 advisoryRed Hat: 2 fixed, 3 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 48
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* | up to 7.9 | Vulnerable | OpenBSD |
| cpe:2.3:a:winscp:winscp:*:*:*:*:*:*:*:* | up to 5.13 | Vulnerable | Winscp |
| cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:element_software:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:ontap_select_deploy:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:steelstore_cloud_integrated_storage:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:storage_automation_store:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
- cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* Versions up to 7.9 Vulnerable ·OpenBSD
- cpe:2.3:a:winscp:winscp:*:*:*:*:*:*:*:* Versions up to 5.13 Vulnerable ·Winscp
- cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:element_software:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:ontap_select_deploy:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:steelstore_cloud_integrated_storage:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:storage_automation_store:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
Show 38 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* | 18.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* | 18.10 | Vulnerable | Canonical |
| cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_eus:8.1:*:*:*:*:*:*:* | 8.1 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_eus:8.2:*:*:*:*:*:*:* | 8.2 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:* | 8.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_eus:8.6:*:*:*:*:*:*:* | 8.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:8.2:*:*:*:*:*:*:* | 8.2 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:8.4:*:*:*:*:*:*:* | 8.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:8.6:*:*:*:*:*:*:* | 8.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:8.2:*:*:*:*:*:*:* | 8.2 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:8.4:*:*:*:*:*:*:* | 8.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:8.6:*:*:*:*:*:*:* | 8.6 | Vulnerable | Red Hat |
| cpe:2.3:o:oracle:solaris:10:*:*:*:*:*:*:* | 10 | Vulnerable | Oracle |
| cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:* | before xcp2361 | Vulnerable | Fujitsu |
| cpe:2.3:h:fujitsu:m10-1:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Fujitsu |
| cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:* | before xcp2361 | Vulnerable | Fujitsu |
| cpe:2.3:h:fujitsu:m10-4:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Fujitsu |
| cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:* | before xcp2361 | Vulnerable | Fujitsu |
| cpe:2.3:h:fujitsu:m10-4s:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Fujitsu |
| cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:* | before xcp2361 | Vulnerable | Fujitsu |
| cpe:2.3:h:fujitsu:m12-1:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Fujitsu |
| cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:* | before xcp2361 | Vulnerable | Fujitsu |
| cpe:2.3:h:fujitsu:m12-2:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Fujitsu |
| cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:* | before xcp2361 | Vulnerable | Fujitsu |
| cpe:2.3:h:fujitsu:m12-2s:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Fujitsu |
| cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:* | before xcp3070 | Vulnerable | Fujitsu |
| cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:* | before xcp3070 | Vulnerable | Fujitsu |
| cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:* | before xcp3070 | Vulnerable | Fujitsu |
| cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:* | before xcp3070 | Vulnerable | Fujitsu |
| cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:* | before xcp3070 | Vulnerable | Fujitsu |
| cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:* | before xcp3070 | Vulnerable | Fujitsu |
| cpe:2.3:o:siemens:scalance_x204rna_firmware:*:*:*:*:*:*:*:* | before 3.2.7 | Vulnerable | Siemens |
| cpe:2.3:h:siemens:scalance_x204rna:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Siemens |
| cpe:2.3:o:siemens:scalance_x204rna_eec_firmware:*:*:*:*:*:*:*:* | before 3.2.7 | Vulnerable | Siemens |
| cpe:2.3:h:siemens:scalance_x204rna_eec:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Siemens |
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* Versions 18.10 Vulnerable ·Canonical
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_eus:8.1:*:*:*:*:*:*:* Versions 8.1 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_eus:8.2:*:*:*:*:*:*:* Versions 8.2 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:* Versions 8.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_eus:8.6:*:*:*:*:*:*:* Versions 8.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:8.2:*:*:*:*:*:*:* Versions 8.2 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:8.4:*:*:*:*:*:*:* Versions 8.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:8.6:*:*:*:*:*:*:* Versions 8.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:8.2:*:*:*:*:*:*:* Versions 8.2 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:8.4:*:*:*:*:*:*:* Versions 8.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:8.6:*:*:*:*:*:*:* Versions 8.6 Vulnerable ·Red Hat
- cpe:2.3:o:oracle:solaris:10:*:*:*:*:*:*:* Versions 10 Vulnerable ·Oracle
- cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:* Versions before xcp2361 Vulnerable ·Fujitsu
- cpe:2.3:h:fujitsu:m10-1:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Fujitsu
- cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:* Versions before xcp2361 Vulnerable ·Fujitsu
- cpe:2.3:h:fujitsu:m10-4:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Fujitsu
- cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:* Versions before xcp2361 Vulnerable ·Fujitsu
- cpe:2.3:h:fujitsu:m10-4s:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Fujitsu
- cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:* Versions before xcp2361 Vulnerable ·Fujitsu
- cpe:2.3:h:fujitsu:m12-1:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Fujitsu
- cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:* Versions before xcp2361 Vulnerable ·Fujitsu
- cpe:2.3:h:fujitsu:m12-2:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Fujitsu
- cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:* Versions before xcp2361 Vulnerable ·Fujitsu
- cpe:2.3:h:fujitsu:m12-2s:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Fujitsu
- cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:* Versions before xcp3070 Vulnerable ·Fujitsu
- cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:* Versions before xcp3070 Vulnerable ·Fujitsu
- cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:* Versions before xcp3070 Vulnerable ·Fujitsu
- cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:* Versions before xcp3070 Vulnerable ·Fujitsu
- cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:* Versions before xcp3070 Vulnerable ·Fujitsu
- cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:* Versions before xcp3070 Vulnerable ·Fujitsu
- cpe:2.3:o:siemens:scalance_x204rna_firmware:*:*:*:*:*:*:*:* Versions before 3.2.7 Vulnerable ·Siemens
- cpe:2.3:h:siemens:scalance_x204rna:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Siemens
- cpe:2.3:o:siemens:scalance_x204rna_eec_firmware:*:*:*:*:*:*:*:* Versions before 3.2.7 Vulnerable ·Siemens
- cpe:2.3:h:siemens:scalance_x204rna_eec:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Siemens
Remediation
Red Hat 1 advisory
- RHSA-2019:3702 Released 2019-11-05 · Red Hat rating Moderateopenssh security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 8) openssh-askpass-8.0p1-3.el8
- Red Hat Enterprise Linux BaseOS (v. 8) openssh-8.0p1-3.el8, openssh-cavs-8.0p1-3.el8, openssh-clients-8.0p1-3.el8 +4
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2019:3702 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2019:3702 |
Timeline
- 2026-10-02 Threatist record created from CVE-2018-20685
- 2026-10-03 Alias added: GHSA-28hp-2gv6-gjp8
References
Patch 6
- 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://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
Sources
- CVE-2018-20685 · CVE Program
- CVE-2018-20685 · NVD
- FIRST EPSS
- GHSA-28hp-2gv6-gjp8 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-20685 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences