Skip to content
Noroxi
CVE-2018-20685· NVD / CVE Program· CNA mitre

In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended access restrictions via the filename of .

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.

MediumCVSS 5.3 · v3.1—No exploit Fix available
Published
Jan 10, 2019
Updated
Jun 16, 2026
EPSS
3.7% · 89th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

22

Monitor

Low priority for now.

CVSS
21 / 40 · 5.3 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.7%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

Affected systems

VendorProduct
openbsdopenssh
winscpwinscp
netappcloud backup
netappelement software
netappontap select deploy
netappsteelstore cloud integrated storage
netappstorage automation store
debiandebian linux
canonicalubuntu linux
redhatenterprise linux
redhatenterprise linux eus
redhatenterprise linux server aus

and 18 more

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • canonical ubuntu linux14.04
  • canonical ubuntu linux16.04
  • canonical ubuntu linux18.04
  • canonical ubuntu linux18.10
  • debian debian linux8.0
  • debian debian linux9.0
  • fujitsu m10-1 firmwarebefore xcp3070
  • fujitsu m10-1 firmwarebefore xcp2361
  • fujitsu m10-4 firmwarebefore xcp2361
  • fujitsu m10-4 firmwarebefore xcp3070
  • fujitsu m10-4s firmwarebefore xcp3070
  • fujitsu m10-4s firmwarebefore xcp2361
  • fujitsu m12-1 firmwarebefore xcp2361
  • fujitsu m12-1 firmwarebefore xcp3070
  • fujitsu m12-2 firmwarebefore xcp2361
  • fujitsu m12-2 firmwarebefore xcp3070
  • fujitsu m12-2s firmwarebefore xcp2361
  • fujitsu m12-2s firmwarebefore xcp3070
  • netapp cloud backupall versions
  • netapp element softwareall versions

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.10dropbearbefore 2019.78-r12019.78-r1
Alpine:v3.10opensshbefore 7.9_p1-r37.9_p1-r3
Alpine:v3.13dropbearbefore 2020.79-r02020.79-r0
Alpine:v3.6opensshbefore 7.5_p1-r47.5_p1-r4
Alpine:v3.7opensshbefore 7.5_p1-r107.5_p1-r10
Alpine:v3.8opensshbefore 7.7_p1-r47.7_p1-r4
Alpine:v3.9dropbearbefore 2018.76-r32018.76-r3
Debian:12opensshbefore 1:7.9p1-51:7.9p1-5
Debian:8opensshbefore 1:6.7p1-5+deb8u81:6.7p1-5+deb8u8
Debian:9opensshbefore 1:7.4p1-10+deb9u51:7.4p1-10+deb9u5
openSUSE:Leap 15.0opensshbefore 7.6p1-lp150.8.9.17.6p1-lp150.8.9.1
openSUSE:Tumbleweedopensshbefore 8.4p1-7.48.4p1-7.4
Red Hat:enterprise_linux:8::appstreamopenssh-askpassbefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-askpass-debuginfobefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-cavs-debuginfobefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-clients-debuginfobefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-debuginfobefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-debugsourcebefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-keycat-debuginfobefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-ldap-debuginfobefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreamopenssh-server-debuginfobefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::appstreampam_ssh_agent_auth-debuginfobefore 0:0.10.3-7.3.el80:0.10.3-7.3.el8
Red Hat:enterprise_linux:8::baseosopensshbefore 0:8.0p1-3.el80:8.0p1-3.el8
Red Hat:enterprise_linux:8::baseosopenssh-cavsbefore 0:8.0p1-3.el80:8.0p1-3.el8

+14

Other highest-scoring records for the same primary product.

  • CVE-2023-38408The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if
    63This week
  • CVE-2023-25136OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling.
    53Plan
  • CVE-2018-15473OpenSSH through 7.7 is prone to a user enumeration vulnerability due to not delaying bailout for an invalid authenticating user until after
    51Plan
  • CVE-2016-6210sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static password when the us
    50Plan
  • CVE-2016-6515The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password authentication, which
    48Plan
  • CVE-2002-0640Buffer overflow in sshd in OpenSSH 2.3.1 through 3.3 may allow remote attackers to execute arbitrary code via a large number of responses du
    48Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:dropbear2019.78-r1 · Alpine:v3.10Package registry (OSV)
alpine:openssh7.9_p1-r3 · Alpine:v3.10Package registry (OSV)
debian:openssh1:7.9p1-5 · Debian:12Package registry (OSV)
opensuse:openssh7.6p1-lp150.8.9.1 · openSUSE:Leap 15.0Package registry (OSV)
red hat:openssh0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssh-askpass0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-askpass-debuginfo0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-cavs0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssh-cavs-debuginfo0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-clients-debuginfo0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-debuginfo0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-debugsource0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-keycat-debuginfo0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-ldap-debuginfo0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openssh-server-debuginfo0:8.0p1-3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:pam_ssh_agent_auth-debuginfo0:0.10.3-7.3.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
rocky linux:openssh0:8.0p1-30.el8_10 · Rocky Linux:8Package registry (OSV)
suse:openssh6.6p1-54.26.1 · SUSE:Linux Enterprise Server 12-LTSSPackage registry (OSV)
suse:openssh-askpass-gnome6.6p1-54.26.1 · SUSE:Linux Enterprise Server 12-LTSSPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
none
Integrity
high · data or configuration can be modified
Availability
none
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
None
Integrity impact
High
Availability impact
None

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records