Sourcetree for macOS had several argument and command injection bugs in Mercurial and Git repository handling. An attacker with permission to commit to a repository linked in Sourcetree for macOS is able to exploit this issue to gain code execution on the system. From version 1.4.0 of Sourcetree for macOS, this vulnerability can be triggered from a webpage through the use of the Sourcetree URI handler. Versions of Sourcetree for macOS starting with 1.0b2 before version 2.7.0 are affected by this vulnerability.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Sourcetree | Atlassian | 1.0 (including) | 2.7 (excluding) |
Sourcetree | Atlassian | 1.0-beta2 (including) | 1.0-beta2 (including) |
Sourcetree | Atlassian | 1.0-beta3 (including) | 1.0-beta3 (including) |
Sourcetree | Atlassian | 1.0-beta4 (including) | 1.0-beta4 (including) |
Sourcetree | Atlassian | 1.0-beta5 (including) | 1.0-beta5 (including) |
Sourcetree | Atlassian | 1.0-rc1 (including) | 1.0-rc1 (including) |
Command injection vulnerabilities typically occur when:
Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks. Command injection is a common problem with wrapper programs.