CVEfocus › CVE database › CVE-2017-15906

CVE-2017-15906

CVSS 5.3 MediumEPSS 3.4% (higher than 89% of CVEs)Published 2017-10-26Updated 2026-05-28Assigner: mitre

The process_open function in sftp-server.c in OpenSSH before 7.6 does not properly prevent write operations in readonly mode, which allows attackers to create zero-length files.

CWE-732

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

36Fixed
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04opensshFixed1:7.6p1-4UBUNTU-CVE-2017-15906
Ubuntu 16.04opensshFixed1:7.2p2-4ubuntu2.4UBUNTU-CVE-2017-15906
Ubuntu 14.04opensshFixed1:6.6p1-2ubuntu2.10UBUNTU-CVE-2017-15906
Debian 14opensshFixed1:7.6p1-1DEBIAN-CVE-2017-15906
Debian 13opensshFixed1:7.6p1-1DEBIAN-CVE-2017-15906
Debian 12opensshFixed1:7.6p1-1DEBIAN-CVE-2017-15906
Red Hat Enterprise Linux 7opensshFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7openssh-askpassFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7openssh-cavsFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7openssh-clientsFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7openssh-keycatFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7openssh-ldapFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7openssh-serverFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7openssh-server-sysvinitFixed0:7.4p1-16.el7RHSA-2018:0980
Red Hat Enterprise Linux 7pam_ssh_agent_authFixed0:0.10.3-2.16.el7RHSA-2018:0980
Red Hat Enterprise Linux 6opensshNot affected
Red Hat Enterprise Linux 6openssh-askpassNot affected
Red Hat Enterprise Linux 6openssh-clientsNot affected
Red Hat Enterprise Linux 6openssh-ldapNot affected
Red Hat Enterprise Linux 6openssh-serverNot affected
Red Hat Enterprise Linux 6pam_ssh_agent_authNot affected
Red Hat Enterprise Linux 5opensshNot affected
Alpine Linux 3.24opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.23opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.22opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.21opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.20opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.19opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.18opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.17opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.16opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.15opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.14opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.13opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.12opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.11opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.10opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.9opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.8opensshFixed7.5_p1-r8ALPINE-CVE-2017-15906
Alpine Linux 3.7opensshFixed7.5_p1-r0ALPINE-CVE-2017-15906
Alpine Linux 3.6opensshFixed7.5_p1-r2ALPINE-CVE-2017-15906
Alpine Linux 3.5opensshFixed7.4_p1-r1ALPINE-CVE-2017-15906
Alpine Linux 3.4opensshFixed7.2_p1-r2ALPINE-CVE-2017-15906

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.