OS command injection in Subversion - CVE-2017-9800

 

OS command injection in Subversion - CVE-2017-9800

Published: August 15, 2017


Vulnerability identifier: #VU7886
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-9800
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The weakness exists due to command injection flaw. A remote attacker (e.g., repository, proxy server) can return a specially crafted 'svn+ssh://' URL during 'checkout', 'export', 'update', and 'switch' commands and execute arbitrary shell commands with privileges of the current user.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

Subversion
Arch Linux
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Debian Linux
Ubuntu
Slackware Linux
Fedora
Oracle Data Integrator
subversion (Alpine package)
subversion (Ubuntu package)
libapache2-svn (Ubuntu package)
libsvn1 (Ubuntu package)
subversion (Debian package)
libapache2-mod-svn (Ubuntu package)
subversion

How to mitigate CVE-2017-9800

Update to version 1.8.19 or 1.9.7.

subversion (Alpine package) - update to 1.9.7-r0
subversion (Ubuntu package) - addressed in versions 1.6.17dfsg-3ubuntu3.7, 1.8.8-1ubuntu3.3, 1.9.3-2ubuntu1.1, 1.9.5-1ubuntu1.1
libapache2-svn (Ubuntu package) - addressed in versions 1.6.17dfsg-3ubuntu3.7, 1.8.8-1ubuntu3.3, 1.9.3-2ubuntu1.1
libsvn1 (Ubuntu package) - addressed in versions 1.6.17dfsg-3ubuntu3.7, 1.8.8-1ubuntu3.3, 1.9.3-2ubuntu1.1, 1.9.5-1ubuntu1.1
subversion (Debian package) - addressed in versions 1.6.17dfsg-4+deb7u12, 1.8.10-6+deb8u5, 1.9.5-1+deb9u1
libapache2-mod-svn (Ubuntu package) - addressed in versions 1.8.8-1ubuntu3.3, 1.9.3-2ubuntu1.1
subversion - addressed in versions 1.9.7-1.fc25, 1.9.7-1.fc26

External References

Related Security Bulletins