CVE-2018-13397 Command injection in Sourcetree for Windows

High 8.8 Published Updated

An attacker with commit access to a linked Mercurial repository can execute arbitrary code on the victim's system via argument injection in 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-13397?

CVE-2018-13397 is a high-severity command injection vulnerability in Atlassian Sourcetree for Windows, published on 5 Nov 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 from version 0.5.1.0 before version 3.0.0 via Git subrepositories in Mercurial repositories. An attacker with permission to commit to a Mercurial repository linked in Sourcetree for Windows is able to exploit this issue to gain code execution on the system.

Which versions are affected by CVE-2018-13397?

It affects 1 product.

Products include Atlassian Sourcetree.

How do I fix CVE-2018-13397?

No fix has been published for CVE-2018-13397 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-13397 being exploited?

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

Sources

Also known as GHSA-5jh9-6vv3-xc89.

Is CVE-2018-13397 in your software?

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

Check your SBOMs for free