{"answers":{"affected":"1 open source package ship an affected version, including git. It affects 4 products.","exploited":"There is no known exploitation of CVE-2022-24765 in the wild and no public exploit code.","fix":"Upgrade git to 2.35.2 or later.","what":"CVE-2022-24765 is a medium-severity path traversal vulnerability in Apple Xcode, published on 12 Apr 2022. 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-2022-24765 and fix it if it is affected.\n\nWhat it is: CVE-2022-24765 is a medium-severity path traversal vulnerability in Apple Xcode, published on 12 Apr 2022. 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-2022-24765 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- git (Bitnami): affected all versions; fixed in 2.35.2\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-2022-24765/ (Markdown: https://insights.sbomify.com/CVE-2022-24765/index.md)","id":"CVE-2022-24765","markdown":"https://insights.sbomify.com/CVE-2022-24765/index.md","name":"CVE-2022-24765","record":{"aliases":["ALPINE-CVE-2022-24765","BIT-git-2022-24765","CLEANSTART-2026-EN85312","DEBIAN-CVE-2022-24765","GHSA-vw2c-22j4-2fh2","MGASA-2022-0147","OESA-2022-1676","SUSE-SU-2022:1260-1","SUSE-SU-2022:1306-1","SUSE-SU-2022:1484-1","UBUNTU-CVE-2022-24765","USN-5376-1","USN-5376-2","USN-5376-3","openSUSE-SU-2024:12003-1","openSUSE-SU-2024:12005-1","openSUSE-SU-2024:12223-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Git for Windows","requires_auth":"low_privilege","summary":"Attackers on multi-user Windows machines can execute arbitrary code by placing a malicious .git directory in the root drive, affecting Git for Windows users.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"xcode","vendor":"apple"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"git","vendor":"git-scm"}],"cvss":{"score":6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"description":"Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\\.git\\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\\Users` if the user profile is located in `C:\\Users\\my-user-name`.","ecosystems":["Bitnami","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Development Tools 15 SP3","SUSE:Linux Enterprise Real Time 15 SP2","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Uncontrolled search for the Git directory in Git for Windows","id":"CVE-2022-24765","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"apple:xcode","products":["apple:xcode","debian:debian_linux","fedoraproject:fedora"],"type":"path_traversal","year":"2022"},"n_packages":43,"n_references":17,"next":{"headline":"Insufficient Protection against HTTP Request Smuggling in mitmproxy","id":"CVE-2022-24766"},"packages":[{"ecosystem":"Bitnami","fixed":["2.35.2"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:bitnami/git","source":"BIT-git-2022-24765"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["2.35.3-150300.10.12.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:1484-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP3","fixed":["2.35.3-150300.10.12.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3","source":"SUSE-SU-2022:1484-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP2","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCL","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCL","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSS","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP4-LTSS","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSS","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-BCL","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCL","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15-LTSS","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSS","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:Manager Proxy 4.1","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Manager%20Proxy%204.1","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Manager Retail Branch Server 4.1","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:Manager Server 4.1","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20Manager%20Server%204.1","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"SUSE:OpenStack Cloud 8","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20OpenStack%20Cloud%208","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:OpenStack Cloud 9","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20OpenStack%20Cloud%209","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 9","fixed":["2.26.2-27.52.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/suse/git\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%209","source":"SUSE-SU-2022:1306-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["2.26.2-150000.36.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/opensuse/git\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-SU-2022:1260-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["2.35.3-150300.10.12.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/opensuse/git\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-SU-2022:1484-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.35.3-150300.10.12.1"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/opensuse/git\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:1484-1"}],"prev":{"headline":"Stack buffer overflow in pjproject","id":"CVE-2022-24764"},"products":["git"],"published":"2022-04-12","related":[{"cvss_score":8.1,"headline":"Git Link Following","id":"CVE-2025-48384","kev_date_added":"2025-08-25","published":"2025-07-08"},{"cvss_score":9.8,"headline":"JGit Improper Input Validation vulnerability","id":"CVE-2014-9390","kev_date_added":null,"published":"2020-02-12"},{"cvss_score":9.8,"headline":"Deserialization of untrusted data in FasterXML jackson-databind","id":"CVE-2019-14379","kev_date_added":null,"published":"2019-07-29"},{"cvss_score":9.8,"headline":"An issue was discovered in certain Apple products.","id":"CVE-2018-4164","kev_date_added":null,"published":"2018-04-03"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2016-0746","kev_date_added":null,"published":"2016-02-15"},{"cvss_score":9.3,"headline":"Missing authorization in n/a","id":"CVE-2004-2687","kev_date_added":null,"published":"2007-09-23"},{"cvss_score":8.8,"headline":"This issue was addressed by enforcing library validation on the affected binaries.","id":"CVE-2026-86948","kev_date_added":null,"published":"2026-10-20"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"2025-12-16","vendors":["git-for-windows"]},"summary":"Attackers on multi-user Windows machines can execute arbitrary code by placing a malicious .git directory in the root drive, affecting Git for Windows users.","url":"https://insights.sbomify.com/CVE-2022-24765/"}