{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-22165 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-22165 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-22165 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2025-22165 in the wild and no public exploit code.\n\nAffected product: Atlassian Sourcetree for Mac. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-22165/ (Markdown: https://insights.sbomify.com/CVE-2025-22165/index.md)","id":"CVE-2025-22165","markdown":"https://insights.sbomify.com/CVE-2025-22165/index.md","name":"CVE-2025-22165","record":{"aliases":["GHSA-g98p-wqr8-r32r"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Git client for Mac","requires_auth":"low_privilege","summary":"A local attacker can execute arbitrary code with elevated privileges in Sourcetree for Mac, requiring user interaction to exploit.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"atlassian","cpe":[{"product":"sourcetree","vendor":"atlassian"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:H/SI:H/SA:L","version":"4.0"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"This Medium severity ACE (Arbitrary Code Execution) vulnerability was introduced in version 4.2.8 of Sourcetree for Mac.\n\nThis 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. \n\nAtlassian 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 .\n\nYou can download the latest version of Sourcetree for Mac from the download center https://www.sourcetreeapp.com/download-archives .\n\nThis vulnerability was found through the Atlassian Bug Bounty Program by Karol Mazurek (AFINE).","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Privilege escalation in Sourcetree for Mac","id":"CVE-2025-22165","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Denial of service in Confluence Data Center","id":"CVE-2025-22166"},"packages":[],"prev":{"headline":"This High severity PrivEsc (Privilege Escalation) vulnerability was introduced in versions: 9.12.0, 10.3.0, 10.4.0, and 10.5.0 of Jira Core","id":"CVE-2025-22157"},"products":["Sourcetree for Mac"],"published":"2025-07-24","related":[{"cvss_score":9.8,"headline":"Command injection in Sourcetree for macOS","id":"CVE-2018-13385","kev_date_added":null,"published":"2018-07-24"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2017-8768","kev_date_added":null,"published":"2017-05-04"},{"cvss_score":8.8,"headline":"Code injection in Sourcetree for Mac","id":"CVE-2024-21697","kev_date_added":null,"published":"2024-11-19"},{"cvss_score":8.8,"headline":"Command injection in Sourcetree for Windows","id":"CVE-2019-11582","kev_date_added":null,"published":"2019-06-14"},{"cvss_score":8.8,"headline":"Command injection in Sourcetree for macOS","id":"CVE-2018-20234","kev_date_added":null,"published":"2019-03-08"},{"cvss_score":8.8,"headline":"Command injection in Sourcetree for Windows","id":"CVE-2018-20235","kev_date_added":null,"published":"2019-03-08"},{"cvss_score":8.8,"headline":"Command injection in Sourcetree for Windows","id":"CVE-2018-20236","kev_date_added":null,"published":"2019-03-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["Atlassian"]},"summary":"A local attacker can execute arbitrary code with elevated privileges in Sourcetree for Mac, requiring user interaction to exploit.","url":"https://insights.sbomify.com/CVE-2025-22165/"}