CVE-2023-22514 is a high severity code injection flaw (CVSS 7.8) in Sourcetree for Mac and Windows, introduced in 3.4.14. Atlassian says it can lead to arbitrary code execution and needs user interaction. Sourcetree for Windows should be 3.4.15 or later, and the October 2023 bulletin names 4.2.5 or later for Mac.
What's affected
- Sourcetree for Mac and Sourcetree for Windows. The record says the flaw was introduced in version 3.4.14.
- The October 2023 bulletin lists all Windows versions from 3.4.0 and all Mac versions from 4.1.0 as affected.
- Fixed versions per the bulletin: Windows 3.4.15 or later, Mac 4.2.5 or later. The advisory text in the record names 3.4.15 for both Mac and Windows on the 3.4 line.
- Severity: CVSS 7.8 High. The record vector reads AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
We found two source conflicts. First, the record says the flaw arrived in 3.4.14 while the bulletin says all Windows versions from 3.4.0 are affected. Second, the Jira ticket linked from the record, SRCTREE-8076, shows the identifier CVE-2024-21680, while the bulletin and the record use CVE-2023-22514. Treat the bulletin fix versions as the safer targets.
How to check if you're exposed
Sourcetree shows its version under About Sourcetree, in the Sourcetree menu on Mac or the Help menu on Windows. For a fleet of Windows machines, use PowerShell to read the installed version:
Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object DisplayName -like "*Sourcetree*" | Select-Object DisplayName, DisplayVersion
Sourcetree installs per user, so run the check in each user context or through your endpoint management tool. On Mac, read the version from the application info.
What to do now
- List the machines that have Sourcetree installed, and the version on each.
- Upgrade Windows installs to 3.4.15 or later, and Mac installs to 4.2.5 or later, or to the current release.
- Pull the installer from the official download page named in the advisory.
- Remind developers not to open repositories or links from sources they do not trust until the upgrade is done.
- Add Sourcetree to your developer tool inventory so future advisories reach an owner.
Why it matters
The weakness is code injection (CWE-94 (Code Injection)). The description says an attacker can execute arbitrary code and that user interaction is required, which usually means a person has to open or accept something. The attacker does not need an account on the machine.
Developer machines are valuable. They hold source code, tokens and SSH keys, and they reach build systems. A desktop Git client sits close to all of that. The Atlassian note says the finding came from its Penetration Testing program. CISA has not listed this CVE in its Known Exploited Vulnerabilities catalog, according to the record we hold, and none of the pages we read said it is being exploited.
Quick check
Which version should I install?
On Windows, 3.4.15 or later. On Mac, the bulletin says 4.2.5 or later. The simplest answer is the latest release from the official download page.
Why do the sources show two CVE IDs?
The Jira ticket page we read shows CVE-2024-21680 while the October 2023 bulletin and the record use CVE-2023-22514. We could not resolve that from the pages. Use the bulletin versions.
Sources
Last reviewed: 19 October 2026.