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.0: 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/E:P/U:Green
CVE-ID: CVE-2018-20234
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Atlassian
Affected software:
Sourcetree for Windows
Sourcetree for macOS

Detailed vulnerability description

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.


How to mitigate CVE-2018-20234

Install updates from vendor's website.

Sources