# CVE-2018-20685: openssh-client: In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypassintended access restrictions via the filen...

CVE-2018-20685 is fixed in 13 products on 1 platform, first by openssh-client 1:7.9p1-5, released January 10, 2019. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-20685
- Priority: Routine
- CVSS: 5.3 (Medium)
- EPSS: 0.0368
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 9, 2019

## Description

In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypassintended access restrictions via the filename of . or an empty filename.The impact is modifying the permissions of the target directory on theclient side.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | openssh RHEL 8 | 0:8.0p1-3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | openssh ol 8 | 0:8.0p1-3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | openssh rocky 8 | 0:8.0p1-30.el8_10 | [RLSA-2019:3702](https://patchblox.com/security/data/fix/linux/rlsa-2019-3702.md) | Jul 30, 2026 |
| Linux | openssh-askpass RHEL 8 | 0:8.0p1-3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | openssh-askpass ol 8 | 0:8.0p1-3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | openssh-cavs RHEL 8 | 0:8.0p1-3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | openssh-cavs ol 8 | 0:8.0p1-3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | openssh-client Ubuntu 18.04.6 LTS (bionic) | 1:7.6p1-4ubuntu0.2 | [openssh-client 1:7.6p1-4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openssh-client-1-7.6p1-4ubuntu0.2.md) | Jan 13, 2019 |
| Linux | openssh-client Ubuntu 24.10 (oracular) | 1:7.9p1-5 | [openssh-client 1:7.9p1-5](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-openssh-client-1-7.9p1-5.md) | Jan 10, 2019 |
| Linux | openssh-clients RHEL 8 | 0:8.0p1-3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | openssh-clients ol 8 | 0:8.0p1-3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | openssh-keycat RHEL 8 | 0:8.0p1-3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | openssh-keycat ol 8 | 0:8.0p1-3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | openssh-ldap RHEL 8 | 0:8.0p1-3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | openssh-ldap ol 8 | 0:8.0p1-3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | openssh-server RHEL 8 | 0:8.0p1-3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | openssh-server Ubuntu 18.04.6 LTS (bionic) | 1:7.6p1-4ubuntu0.2 | [openssh-server 1:7.6p1-4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openssh-server-1-7.6p1-4ubuntu0.2.md) | Jan 13, 2019 |
| Linux | openssh-server Ubuntu 24.10 (oracular) | 1:7.9p1-5 | [openssh-server 1:7.9p1-5](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-openssh-server-1-7.9p1-5.md) | Jan 10, 2019 |
| Linux | openssh-server ol 8 | 0:8.0p1-3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | openssh-sftp-server Ubuntu 18.04.6 LTS (bionic) | 1:7.6p1-4ubuntu0.2 | [openssh-sftp-server 1:7.6p1-4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openssh-sftp-server-1-7.6p1-4ubuntu0.2.md) | Jan 13, 2019 |
| Linux | openssh-sftp-server Ubuntu 24.10 (oracular) | 1:7.9p1-5 | [openssh-sftp-server 1:7.9p1-5](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-openssh-sftp-server-1-7.9p1-5.md) | Jan 10, 2019 |
| Linux | openssh-tests Ubuntu 24.10 (oracular) | 1:7.9p1-5 | [openssh-tests 1:7.9p1-5](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-openssh-tests-1-7.9p1-5.md) | Jan 10, 2019 |
| Linux | pam_ssh_agent_auth RHEL 8 | 0:0.10.3-7.3.el8 | [RHSA-2019:3702](https://patchblox.com/security/data/fix/linux/rhsa-2019-3702.md) | Nov 5, 2019 |
| Linux | pam_ssh_agent_auth ol 8 | 0:0.10.3-7.3.el8 | [ELSA-2019-3702](https://patchblox.com/security/data/fix/linux/elsa-2019-3702.md) | Nov 14, 2019 |
| Linux | ssh Ubuntu 18.04.6 LTS (bionic) | 1:7.6p1-4ubuntu0.2 | [ssh 1:7.6p1-4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ssh-1-7.6p1-4ubuntu0.2.md) | Jan 13, 2019 |
| Linux | ssh Ubuntu 24.10 (oracular) | 1:7.9p1-5 | [ssh 1:7.9p1-5](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-ssh-1-7.9p1-5.md) | Jan 10, 2019 |
| Linux | ssh-askpass-gnome Ubuntu 18.04.6 LTS (bionic) | 1:7.6p1-4ubuntu0.2 | [ssh-askpass-gnome 1:7.6p1-4ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ssh-askpass-gnome-1-7.6p1-4ubuntu0.2.md) | Jan 13, 2019 |
| Linux | ssh-askpass-gnome Ubuntu 24.10 (oracular) | 1:7.9p1-5 | [ssh-askpass-gnome 1:7.9p1-5](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-ssh-askpass-gnome-1-7.9p1-5.md) | Jan 10, 2019 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
