cve.bz

CVE-2018-20685 Incorrect Authorization

5.3 mediumEPSS 3.7%Fix available

Medium (5.3). EPSS 3.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS
3.7% (unchanged from 3.7% a week ago; 3.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-12-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-20685 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-20685?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-20685?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-20685 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openbsd:opensshthrough 7.9
winscp:winscpthrough 5.13
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux_eus8.1
redhat:enterprise_linux_eus8.2
redhat:enterprise_linux_eus8.4
redhat:enterprise_linux_eus8.6
redhat:enterprise_linux_server_aus8.2
redhat:enterprise_linux_server_aus8.4
redhat:enterprise_linux_server_aus8.6
redhat:enterprise_linux_server_tus8.2
redhat:enterprise_linux_server_tus8.4
redhat:enterprise_linux_server_tus8.6
oracle:solaris10
fujitsu:m10-1_firmwarebefore xcp2361
fujitsu:m10-4_firmwarebefore xcp2361
fujitsu:m10-4s_firmwarebefore xcp2361
fujitsu:m12-1_firmwarebefore xcp2361
fujitsu:m12-2_firmwarebefore xcp2361
fujitsu:m12-2s_firmwarebefore xcp2361
fujitsu:m10-1_firmwarebefore xcp3070
fujitsu:m10-4_firmwarebefore xcp3070
fujitsu:m10-4s_firmwarebefore xcp3070
fujitsu:m12-1_firmwarebefore xcp3070
fujitsu:m12-2_firmwarebefore xcp3070
fujitsu:m12-2s_firmwarebefore xcp3070
siemens:scalance_x204rna_firmwarebefore 3.2.7
siemens:scalance_x204rna_eec_firmwarebefore 3.2.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8openssh1:6.7p1-5+deb8u8DLA-1728-1
Debian9openssh1:7.4p1-10+deb9u5DSA-4387-1
Debian12, 13, 14openssh1:7.9p1-5DEBIAN-CVE-2018-20685
Ubuntu14.04:LTSopenssh1:6.6p1-2ubuntu2.12UBUNTU-CVE-2018-20685 USN-3885-1
Ubuntu16.04:LTSopenssh1:7.2p2-4ubuntu2.7UBUNTU-CVE-2018-20685 USN-3885-1
Ubuntu18.04:LTSopenssh1:7.6p1-4ubuntu0.2UBUNTU-CVE-2018-20685 USN-3885-1
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 1 moreopenssh-ssh1no fix listedUBUNTU-CVE-2018-20685
UbuntuPro:FIPS-updates:16.04:LTSopenssh1:7.2p2-4ubuntu2.fips.2.8.1UBUNTU-CVE-2018-20685
UbuntuPro:FIPS:16.04:LTSopenssh1:7.2p2-4ubuntu2.fips.2.10.1UBUNTU-CVE-2018-20685
Red Hatenterprise_linux:8::appstreamopenssh-askpass, openssh-debuginfo, openssh-debugsource and 6 more0:8.0p1-3.el8RHSA-2019:3702
Red Hatenterprise_linux:8::appstreampam_ssh_agent_auth-debuginfo0:0.10.3-7.3.el8RHSA-2019:3702
Red Hatenterprise_linux:8::baseosopenssh, openssh-cavs, openssh-ldap and 11 more0:8.0p1-3.el8RHSA-2019:3702
Red Hatenterprise_linux:8::baseospam_ssh_agent_auth, pam_ssh_agent_auth-debuginfo0:0.10.3-7.3.el8RHSA-2019:3702
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4 and 8 moreopenssh, openssh-askpass-gnome7.2p2-74.35.1SUSE-SU-2019:0132-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Server Applications 15openssh7.6p1-9.13.1SUSE-SU-2019:0126-1
SUSELinux Enterprise Module for Desktop Applications 15openssh-askpass-gnome7.6p1-9.13.1SUSE-SU-2019:0126-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4openssh, openssh-askpass-gnome6.6p1-36.12.1SUSE-SU-2019:13931-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server 12-LTSSopenssh, openssh-askpass-gnome6.6p1-54.26.1SUSE-SU-2019:0125-1
SUSELinux Enterprise Server for SAP Applications 12 SP1openssh, openssh-askpass-gnome6.6p1-54.26.1SUSE-SU-2019:0125-2
openSUSELeap 15.0openssh7.6p1-lp150.8.9.1openSUSE-SU-2019:0091-1
openSUSETumbleweedopenssh8.4p1-7.4openSUSE-SU-2024:11124-1
Rocky Linux8openssh0:8.0p1-30.el8_10RLSA-2019:3702
Alpinev3.6openssh7.5_p1-r4ALPINE-CVE-2018-20685
Alpinev3.7openssh7.5_p1-r10ALPINE-CVE-2018-20685
Alpinev3.8openssh7.7_p1-r4ALPINE-CVE-2018-20685
Alpinev3.9dropbear2018.76-r3ALPINE-CVE-2018-20685
Alpinev3.9, v3.10, v3.11 and 13 moreopenssh7.9_p1-r3ALPINE-CVE-2018-20685
Alpinev3.10, v3.11, v3.12dropbear2019.78-r1ALPINE-CVE-2018-20685
Alpinev3.13, v3.14, v3.15 and 9 moredropbear2020.79-r0ALPINE-CVE-2018-20685

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the scp client shipped with openssh. The SSH protocol or the SSH client is not affected. For more detailed analysis please refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1665785#c4

Red Hat's mitigation

This issue only affects the users of scp binary which is a part of openssh-clients package. Other usage of SSH protocol or other ssh clients is not affected. Administrators can uninstall openssh-clients for additional protection against accidental usage of this binary. Removing the openssh-clients package will make binaries like scp and ssh etc unavailable on that system.

Note: To exploit this flaw, the victim needs to connect to a malicious SSH server or MITM (Man-in-the-middle) the scp connection, both of which can be detected by the system administrator via a change in the host key of the SSH server. Further, if connections via scp are made to only trusted SSH servers, then those use-cases are not vulnerable to this security flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8openssh-0:8.0p1-3.el8Fixed 2019-11-05RHSA-2019:3702
Red Hat Enterprise Linux 5opensshOut of support scope
Red Hat Enterprise Linux 6opensshOut of support scope
Red Hat Enterprise Linux 7opensshWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-20685.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-349-21Siemens SCALANCE X-200RNA Switch Devices2022-12-13MultipleSCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2), SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2), SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON