Cloudanix VulnDB

CVE-2017-15906

Medium · 5.3

CVSS

5.3

EPSS

3.4%

Published

Oct 26, 2017

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in the OpenSSH file transfer component lets attackers create empty files even when the server is set to allow only reading.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Network Service
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The process_open function in sftp-server.c fails to enforce read-only restrictions, allowing unauthorized write operations that result in creation of zero-length files.

Why it matters to the business

Attackers can create empty files on systems using vulnerable OpenSSH SFTP servers, potentially enabling minor integrity violations or serving as an initial foothold despite the limited scope of the flaw.

How an attack unfolds

An unauthenticated or low-privileged attacker connects to an OpenSSH SFTP server configured for read-only access and issues open requests that bypass checks in process_open, resulting in successful creation of zero-byte files.

How to fix it

Upgrade OpenSSH to 7.6 or later. For listed products apply openbsd/src (GIT) patch a6981567e8e215acc1ef690c8dbb30f2d9b00a19, nerdctl (Chainguard) version 0, and nerdctl (Wolfi) version 0.

How to confirm the fix worked

Confirm OpenSSH version is at least 7.6, then test SFTP sessions under read-only mode to verify that write attempts are rejected and no zero-length files are created.

Typical attack path

  1. Establish SFTP connection to vulnerable OpenSSH server
  2. Issue file open commands attempting write mode in a read-only context
  3. Bypass authorization checks to create zero-length files

How to detect it

Examine SFTP server logs for process_open calls that result in file creation under read-only sessions and search filesystem metadata for unexpectedly created zero-length files.

What your security team should do

  • Apply the listed fixed versions across all OpenSSH deployments
  • Audit SFTP configurations to enforce strict read-only modes where required
  • Review file creation logs for unexpected zero-length files

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 openssh 0 7.5_p1-r8
Alpine:v3.11 openssh 0 7.5_p1-r8
Alpine:v3.12 openssh 0 7.5_p1-r8
Alpine:v3.13 openssh 0 7.5_p1-r8
Alpine:v3.14 openssh 0 7.5_p1-r8
Alpine:v3.15 openssh 0 7.5_p1-r8
Alpine:v3.16 openssh 0 7.5_p1-r8
Alpine:v3.17 openssh 0 7.5_p1-r8
Alpine:v3.18 openssh 0 7.5_p1-r8
Alpine:v3.19 openssh 0 7.5_p1-r8
Alpine:v3.20 openssh 0 7.5_p1-r8
Alpine:v3.21 openssh 0 7.5_p1-r8
Alpine:v3.22 openssh 0 7.5_p1-r8
Alpine:v3.4 openssh 0 7.2_p1-r2
Alpine:v3.5 openssh 0 7.4_p1-r1
Alpine:v3.6 openssh 0 7.5_p1-r2
Alpine:v3.7 openssh 0 7.5_p1-r0
Alpine:v3.8 openssh 0 7.5_p1-r8
Alpine:v3.9 openssh 0 7.5_p1-r8
Debian:10 openssh 0 1:7.6p1-1
Debian:11 openssh 0 1:7.6p1-1
Debian:12 openssh 0 1:7.6p1-1
Debian:13 openssh 0 1:7.6p1-1
Debian:14 openssh 0 1:7.6p1-1
Debian:8 openssh 0 1:6.7p1-5+deb8u6
Mageia:5 openssh 0 6.6p1-5.10.mga5
Mageia:6 openssh 0 7.5p1-2.1.mga6
Red Hat:enterprise_linux:7::client openssh 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-askpass 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-cavs 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-clients 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-debuginfo 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-keycat 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-ldap 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-server 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client openssh-server-sysvinit 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::client pam_ssh_agent_auth 0 0:0.10.3-2.16.el7
Red Hat:enterprise_linux:7::computenode openssh 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-askpass 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-cavs 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-clients 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-debuginfo 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-keycat 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-ldap 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-server 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode openssh-server-sysvinit 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::computenode pam_ssh_agent_auth 0 0:0.10.3-2.16.el7
Red Hat:enterprise_linux:7::server openssh 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-askpass 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-cavs 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-clients 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-debuginfo 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-keycat 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-ldap 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-server 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server openssh-server-sysvinit 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::server pam_ssh_agent_auth 0 0:0.10.3-2.16.el7
Red Hat:enterprise_linux:7::workstation openssh 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-askpass 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-cavs 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-clients 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-debuginfo 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-keycat 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-ldap 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-server 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation openssh-server-sysvinit 0 0:7.4p1-16.el7
Red Hat:enterprise_linux:7::workstation pam_ssh_agent_auth 0 0:0.10.3-2.16.el7
SUSE:Linux Enterprise Desktop 12 SP2 openssh 0 7.2p2-74.11.1
SUSE:Linux Enterprise Desktop 12 SP2 openssh-askpass-gnome 0 7.2p2-74.11.3
SUSE:Linux Enterprise Desktop 12 SP3 openssh 0 7.2p2-74.11.1
SUSE:Linux Enterprise Desktop 12 SP3 openssh-askpass-gnome 0 7.2p2-74.11.3
SUSE:Linux Enterprise Point of Sale 11 SP3 openssh 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 openssh-askpass-gnome 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS openssh 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS openssh-askpass-gnome 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA openssh 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA openssh-askpass-gnome 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP4 openssh 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server 11 SP4 openssh-askpass-gnome 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server 11-SECURITY openssh-openssl1 0 6.6p1-19.3.1
SUSE:Linux Enterprise Server 12 SP1-LTSS openssh 0 6.6p1-54.15.2
SUSE:Linux Enterprise Server 12 SP1-LTSS openssh-askpass-gnome 0 6.6p1-54.15.1
SUSE:Linux Enterprise Server 12 SP2 openssh 0 7.2p2-74.11.1
SUSE:Linux Enterprise Server 12 SP2 openssh-askpass-gnome 0 7.2p2-74.11.3
SUSE:Linux Enterprise Server 12 SP3 openssh 0 7.2p2-74.11.1
SUSE:Linux Enterprise Server 12 SP3 openssh-askpass-gnome 0 7.2p2-74.11.3
SUSE:Linux Enterprise Server 12-LTSS openssh 0 6.6p1-54.15.2
SUSE:Linux Enterprise Server 12-LTSS openssh-askpass-gnome 0 6.6p1-54.15.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 openssh 0 7.2p2-74.11.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 openssh-askpass-gnome 0 7.2p2-74.11.3
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 openssh 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 openssh-askpass-gnome 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 openssh 0 6.6p1-54.15.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 openssh-askpass-gnome 0 6.6p1-54.15.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 openssh 0 7.2p2-74.11.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 openssh-askpass-gnome 0 7.2p2-74.11.3
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 openssh 0 7.2p2-74.11.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 openssh-askpass-gnome 0 7.2p2-74.11.3
Ubuntu:14.04:LTS openssh 0 1:6.6p1-2ubuntu2.10
Ubuntu:16.04:LTS openssh 0 1:7.2p2-4ubuntu2.4
Ubuntu:18.04:LTS openssh 0 1:7.6p1-4

Related vulnerabilities