Skip to main content
No exploitation reportedFix available

CVE-2018-20685

No exploitation reported by the sources we read.

  • Published2019-01-10
  • WeaknessCWE-863

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2019-01-1021:29CVE publishedNVD

Versions per branch

NVD
OpenSSH
BranchAffectedFixed in
7.9≤ 7.9no fix published
Canonical ubuntu linux
BranchAffectedFixed in
14.4= 14.04no fix published
16.4= 16.04no fix published
18.4= 18.04no fix published
18.10= 18.10no fix published
Redhat enterprise linux eus
BranchAffectedFixed in
8.1= 8.1no fix published
8.2= 8.2no fix published
8.4= 8.4no fix published
8.6= 8.6no fix published

19 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • dropbearCleanStartall versions · fixed in 2020.79-r0
  • dropbearAlpine:v3.25all versions · fixed in 2020.79-r0
  • dropbearAlpine:v3.24all versions · fixed in 2020.79-r0
  • dropbearAlpine:v3.23all versions · fixed in 2020.79-r0
  • dropbearAlpine:v3.22all versions · fixed in 2020.79-r0
  • dropbearAlpine:v3.21all versions · fixed in 2020.79-r0
  • dropbearAlpine:v3.20all versions · fixed in 2020.79-r0
  • dropbearAlpine:v3.19all versions · fixed in 2020.79-r0

78 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-20685 Red Hat Product Security105 products fixed · 18 known affected

    openssh: scp client improper directory name validation

    openssh.src as a component of Red Hat Enterprise Linux 5 · openssh as a component of Red Hat Enterprise Linux 6 · openssh-askpass as a component of Red Hat Enterprise Linux 6 · +15 more

  • ICSA-22-349-21 CISA5 known affected

    Siemens SCALANCE X-200RNA Switch Devices

    SCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2) · SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2) · SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) · +2 more

  • SSA-412672 Siemens ProductCERT5 known affected

    SSA-412672: Multiple OpenSSL and OpenSSH Vulnerabilities in SCALANCE X-200RNA Switch Devices before V3.2.7

    SCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2) · SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2) · SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) · +2 more

  • RHSA-2019:3702 Red Hat Product Security105 products fixed

    Red Hat Security Advisory: openssh security, bug fix, and enhancement update

Full record on NVD

Fix

  1. Vendor fix Siemens ProductCERT SSA-412672 · 5 productsUpdate to V3.2.7 or later version
  2. Vendor fix CISA ICSA-22-349-21 · 5 productsUpdate to V3.2.7 or later version
  3. Vendor fix Red Hat Product Security RHSA-2019:3702 · 105 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the OpenSSH server daemon (sshd) will be restarted automatically.
  4. Workaround from the vendor Red Hat Product Security RHSA-2019:3702 · 105 productsThis 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 …
  5. Mitigation from the vendor Siemens ProductCERT SSA-412672 · 5 productsRestrict access to the affected systems, especially to ports 22/tcp and 443/tcp to trusted IP addresses only
  6. Mitigation from the vendor Siemens ProductCERT SSA-412672 · 5 productsDeactivate the webserver if not required, and if deactivation is supported by the product

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Published
2019-01-10
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-28hp-2gv6-gjp8

Frequently asked questions

What is CVE-2018-20685?

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.

Is CVE-2018-20685 actively exploited?

Active exploitation of CVE-2018-20685 has not been confirmed. Its EPSS score was 3.7% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-20685?

CVE-2018-20685 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N.

Running OpenSSH? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record