{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-21697 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-21697 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-21697 is a high-severity code injection vulnerability in Atlassian Sourcetree for Mac, published on 19 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-21697 and fix it if it is affected.\n\nWhat it is: CVE-2024-21697 is a high-severity code injection vulnerability in Atlassian Sourcetree for Mac, published on 19 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-21697 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-2024-21697/ (Markdown: https://insights.sbomify.com/CVE-2024-21697/index.md)","id":"CVE-2024-21697","markdown":"https://insights.sbomify.com/CVE-2024-21697/index.md","name":"CVE-2024-21697","record":{"aliases":["GHSA-v826-2933-8r2h"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Git client","requires_auth":"none","summary":"An unauthenticated attacker can execute arbitrary code on Sourcetree for Mac and Windows via a remote code execution vulnerability requiring user interaction.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"atlassian","cpe":[{"product":"sourcetree","vendor":"atlassian"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[],"description":"This High severity RCE (Remote Code Execution) vulnerability was introduced in versions 4.2.8 of Sourcetree for Mac and 3.4.19 for Sourcetree for Windows.\r\n\r\nThis RCE (Remote Code Execution) vulnerability, with a CVSS Score of 8.8, allows an unauthenticated attacker to execute arbitrary code which has high impact to confidentiality, high impact to integrity, high impact to availability, and requires user interaction.\r\n\r\nAtlassian recommends that Sourcetree for Mac and Sourcetree for Windows customers upgrade to latest version, if you are unable to do so, upgrade your instance to one of the specified supported fixed versions:\r\n Sourcetree for Mac 4.2: Upgrade to a release greater than or equal to 4.2.9\r\n Sourcetree for Windows 3.4: Upgrade to a release greater than or equal to 3.4.20\r\n\r\nSee the release notes ([https://www.sourcetreeapp.com/download-archives]). You can download the latest version of Sourcetree for Mac and Sourcetree for Windows from the download center ([https://www.sourcetreeapp.com/download-archives]).\r\n\r\nThis vulnerability was reported via our Penetration Testing program.","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":"Code injection in Sourcetree for Mac","id":"CVE-2024-21697","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"To maintain compliance with CNA rules, we have rejected this CVE record because it has not been used.","id":"CVE-2024-21701"},"packages":[],"prev":{"headline":"To maintain compliance with CNA rules, we have rejected this CVE record because it has not been used.","id":"CVE-2024-21696"},"products":["Sourcetree for Mac","Sourcetree for Windows"],"published":"2024-11-19","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":"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-25","vendors":["Atlassian"]},"summary":"An unauthenticated attacker can execute arbitrary code on Sourcetree for Mac and Windows via a remote code execution vulnerability requiring user interaction.","url":"https://insights.sbomify.com/CVE-2024-21697/"}