

recurse-submodules use git submodule update only after examiningĪtlassian supports Sourcetree through the Atlassian Community. avoid using submodules with untrusted repositories (don't use the clone.examine the hostname and username portion of URLs fed to git cloneįor the presence of encoded newlines (%0a) or evidence ofĬredential-protocol injections (e.g., host= ).
Sourcetree alternative upgrade#
If you can't upgrade the Sourcetree or Git immediately, an alternative is to avoid malicious URLs: If you are running a version of Sourcetree for macOS earlier than 4.0.2, or Sourcetree for Windows earlier than 3.3.9 and cannot upgrade to the latest version immediately, the best workaround is to upgrade to the latest version of Git and select the option to use system Git. Upgrade to Sourcetree for macOS version 4.0.2 or Higher Sourcetree for Windows version 3.3.9 or higher. For a full description of the latest version of Sourcetree, see the r elease notes( Windows and Mac). You can download the latest version of Sourcetree from the Sourcetree website. Ītlassian recommends that you upgrade to the latest version.
Sourcetree alternative for mac#
SRCTREE-7358 - Git submodules vulnerability in Sourcetree for Mac - CVE-2020-5260 CLOSEDĪll versions of Sourcetree for Windows 3.3.8 and earlier are affected by this vulnerability. The vulnerability can be triggered by feeding a malicious URL to git clone. However, the affected URLs look rather suspicious the likely vector would be through systems which automatically clone URLs not visible to the user, such as Git submodules, or package systems built around Git.Īll versions of Sourcetree for macOS 4.0.1 and earlier are affected by this vulnerability.

There are no restrictions on the relationship between the two, meaning that an attacker can craft a URL that will present stored credentials for any hostname to a hostname of their choosing. Specially-crafted URLs that contain an encoded newline could inject unintended values into the credential helper protocol stream, causing the credential helper to retrieve the password for one server (e.g., ) for an HTTP request being made to another server (e.g., ), resulting in credentials for the former being sent to the latter. Sourcetree uses Git, which uses external "credential helper" programs to store and retrieve passwords or other credentials from secure storage provided by the operating system. This is our assessment and you should evaluate its applicability to your own IT environment. This rating was given according to the Atlassian security levels, which rank vulnerabilities as critical, high, moderate, or low severity. Please upgrade your Sourcetree for Windows and Mac immediately to fix this vulnerability.Ītlassian has given this vulnerability a critical rating. Customers who have downloaded and installed any of the Sourcetree for Windows and Mac versions listed above ("Affected Sourcetree versions") are affected.
