CWE
863
Advisory Published
Updated

CVE-2018-20685

First published: Thu Jan 10 2019(Updated: )

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. Upstream Patch: <a href="https://github.com/openssh/openssh-portable/commit/6010c030">https://github.com/openssh/openssh-portable/commit/6010c030</a> <a href="https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&amp;r2=1.198&amp;f=h">https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.197&amp;r2=1.198&amp;f=h</a>

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
debian/openssh<=1:7.4p1-10<=1:7.9p1-4<=1:7.4p1-10+deb9u4
1:7.9p1-5
1:7.4p1-10+deb9u5
debian/openssh
1:8.4p1-5+deb11u3
1:8.4p1-5+deb11u4
1:9.2p1-2+deb12u5
1:9.9p2-2
OpenSSH<=7.9
WinSCP<=5.13
NetApp Cloud Backup
NetApp Management Services for Element Software
NetApp ONTAP Select Deploy Utility
NetApp SteelStore Cloud Integrated Storage
NetApp Storage Automation Store
Debian Linux=8.0
Debian Linux=9.0
Ubuntu=14.04
Ubuntu=16.04
Ubuntu=18.04
Ubuntu=18.10
Red Hat Enterprise Linux=7.0
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux Server EUS=8.1
Red Hat Enterprise Linux Server EUS=8.2
Red Hat Enterprise Linux Server EUS=8.4
Red Hat Enterprise Linux Server EUS=8.6
Red Hat Enterprise Linux Server=8.2
Red Hat Enterprise Linux Server=8.4
Red Hat Enterprise Linux Server=8.6
Red Hat Enterprise Linux Server=8.2
Red Hat Enterprise Linux Server=8.4
Red Hat Enterprise Linux Server=8.6
Oracle Solaris and Zettabyte File System (ZFS)=10
All of
Oracle Fujitsu M10-1 Firmware<xcp2361
Oracle Fujitsu M10-1
All of
Oracle Fujitsu M10-4 Firmware<xcp2361
Oracle Fujitsu M10-4
All of
Oracle Fujitsu M10-4S Firmware<xcp2361
Fujitsu M10-4S
All of
Oracle Fujitsu M12-1 Firmware<xcp2361
Oracle Fujitsu M12-1 Firmware
All of
Oracle Fujitsu M12-2 Firmware<xcp2361
Fujitsu SPARC M12-2
All of
Fujitsu SPARC M12-2S<xcp2361
Fujitsu SPARC M12-2S
All of
Oracle Fujitsu M10-1 Firmware<xcp3070
Oracle Fujitsu M10-1
All of
Oracle Fujitsu M10-4 Firmware<xcp3070
Oracle Fujitsu M10-4
All of
Oracle Fujitsu M10-4S Firmware<xcp3070
Fujitsu M10-4S
All of
Oracle Fujitsu M12-1 Firmware<xcp3070
Oracle Fujitsu M12-1 Firmware
All of
Oracle Fujitsu M12-2 Firmware<xcp3070
Fujitsu SPARC M12-2
All of
Fujitsu SPARC M12-2S<xcp3070
Fujitsu SPARC M12-2S
All of
Siemens Scalance X204RNA EEC Firmware<3.2.7
Siemens Scalance X204RNA EEC
All of
Siemens Scalance X204RNA ECC Firmware<3.2.7
Siemens Scalance X204RNA EEC Firmware
Oracle Fujitsu M10-1 Firmware<xcp2361
Oracle Fujitsu M10-1
Oracle Fujitsu M10-4 Firmware<xcp2361
Oracle Fujitsu M10-4
Oracle Fujitsu M10-4S Firmware<xcp2361
Fujitsu M10-4S
Oracle Fujitsu M12-1 Firmware<xcp2361
Oracle Fujitsu M12-1 Firmware
Oracle Fujitsu M12-2 Firmware<xcp2361
Fujitsu SPARC M12-2
Fujitsu SPARC M12-2S<xcp2361
Fujitsu SPARC M12-2S
Oracle Fujitsu M10-1 Firmware<xcp3070
Oracle Fujitsu M10-4 Firmware<xcp3070
Oracle Fujitsu M10-4S Firmware<xcp3070
Oracle Fujitsu M12-1 Firmware<xcp3070
Oracle Fujitsu M12-2 Firmware<xcp3070
Fujitsu SPARC M12-2S<xcp3070
Siemens Scalance X204RNA EEC Firmware<3.2.7
Siemens Scalance X204RNA EEC
Siemens Scalance X204RNA ECC Firmware<3.2.7
Siemens Scalance X204RNA EEC Firmware

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2018-20685?

    CVE-2018-20685 is considered a medium severity vulnerability, allowing bypass of access restrictions in the OpenSSH scp client.

  • How do I fix CVE-2018-20685?

    To fix CVE-2018-20685, update OpenSSH to version 7.9p1-5 or later.

  • Which software is affected by CVE-2018-20685?

    CVE-2018-20685 affects OpenSSH version 7.9 and earlier, including variants in Debian and other distributions.

  • What is the impact of CVE-2018-20685?

    The impact of CVE-2018-20685 is the potential for unauthorized file access due to improper filename handling.

  • Is CVE-2018-20685 relevant for my system?

    CVE-2018-20685 is relevant if you are using an affected version of OpenSSH in your system or application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203