There was an argument injection vulnerability in Sourcetree for macOS via filenames in Mercurial repositories. An attacker with permission to commit to a Mercurial repository linked in Sourcetree for macOS is able to exploit this issue to gain code execution on the system.
- Versions of Sourcetree for macOS before version 3.1.1 are affected by this vulnerability
- Upgrade Sourcetree for macOS to version 3.1.1 or higher from https://www.sourcetreeapp.com/
For additional details, see the full advisory: https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2019-03-06-966678691.html