CVE-2018-5226 Command injection in SourceTree Windows

High 8.8 Published Updated

An attacker can execute arbitrary code on a victim's system by crafting a malicious Mercurial tag name in a repository linked to SourceTree.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-5226?

CVE-2018-5226 is a high-severity command injection vulnerability in Atlassian SourceTree Windows, published on 25 Apr 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

There was an argument injection vulnerability in Sourcetree for Windows via Mercurial repository tag name that is going to be deleted. An attacker with permission to create a tag on a Mercurial repository linked in Sourcetree for Windows is able to exploit this issue to gain code execution on the system. All versions of Sourcetree for Windows before 2.5.5.0 are affected by this vulnerability.

Which versions are affected by CVE-2018-5226?

It affects 1 product.

Products include Atlassian Sourcetree.

How do I fix CVE-2018-5226?

No fix has been published for CVE-2018-5226 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2018-5226 being exploited?

There is no known exploitation of CVE-2018-5226 in the wild and no public exploit code.

Sources

Also known as GHSA-4rr7-7xpx-xq3f.

Is CVE-2018-5226 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free