Code Injection in Sourcetree for Windows and Sourcetree for macOS - CVE-2018-20234

 

Code Injection in Sourcetree for Windows and Sourcetree for macOS - CVE-2018-20234

Published: March 22, 2019


Vulnerability identifier: #VU18054
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-20234
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to improper input validation when processing filenames in Mercurial repositories. A remote attacker with permission to commit to a Mercurial repository can create a specially crafted filename and inject arbitrary arguments.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Sourcetree for Windows
Sourcetree for macOS

How to mitigate CVE-2018-20234

Install updates from vendor's website.

Sourcetree for Windows - update to 3.0.17
Sourcetree for macOS - update to 3.1.1

External References

Related Security Bulletins