CVE-2025-22165 Privilege escalation in Sourcetree for Mac

Medium 5.9 Published Updated

A local attacker can execute arbitrary code with elevated privileges in Sourcetree for Mac, requiring user interaction to exploit.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-22165?

CVE-2025-22165 is a medium-severity vulnerability in Atlassian Sourcetree for Mac, published on 24 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

This Medium severity ACE (Arbitrary Code Execution) vulnerability was introduced in version 4.2.8 of Sourcetree for Mac.

This ACE (Arbitrary Code Execution) vulnerability, with a CVSS Score of 5.9, allows a locally authenticated attacker to execute arbitrary code which has high impact to confidentiality, high impact to integrity, high impact to availability, and requires user interaction. 

Atlassian recommends that Sourcetree for Mac users upgrade to the latest version. If you are unable to do so, upgrade your instance to one of the specified supported fixed versions. See the release notes https://www.sourcetreeapp.com/download-archives .

You can download the latest version of Sourcetree for Mac from the download center https://www.sourcetreeapp.com/download-archives .

This vulnerability was found through the Atlassian Bug Bounty Program by Karol Mazurek (AFINE).

Weakness: CWE-269

Which versions are affected by CVE-2025-22165?

It affects 1 product.

Products include Atlassian Sourcetree.

How do I fix CVE-2025-22165?

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

Is CVE-2025-22165 being exploited?

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

Sources

Also known as GHSA-g98p-wqr8-r32r.

Is CVE-2025-22165 in your software?

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

Check your SBOMs for free