{"answers":{"affected":"1 open source package ship an affected version, including git. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32002 exists.","fix":"Upgrade git to a fixed version for your release line: 2.39.4, 2.40.2, 2.41.1 or 2.42.2.","what":"CVE-2024-32002 is a critical code injection vulnerability in git, published on 14 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-32002 and fix it if it is affected.\n\nWhat it is: CVE-2024-32002 is a critical code injection vulnerability in git, published on 14 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32002 exists.\n\nAffected packages and fixed versions:\n- git (Bitnami): affected all versions; fixed in 2.39.4, 2.40.2, 2.41.1, 2.42.2, 2.43.4, 2.44.1, 2.45.1\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-32002/ (Markdown: https://insights.sbomify.com/CVE-2024-32002/index.md)","id":"CVE-2024-32002","markdown":"https://insights.sbomify.com/CVE-2024-32002/index.md","name":"CVE-2024-32002","record":{"aliases":["ALPINE-CVE-2024-32002","AZL-42040","AZL-43038","BELL-CVE-2024-32002","BIT-git-2024-32002","CLEANSTART-2026-EJ88991","CLSA-2024-1718028901","CLSA-2024-1727797025","CLSA-2025-1737153672","DEBIAN-CVE-2024-32002","GHSA-8h77-4q3w-gfgv","UBUNTU-CVE-2024-32002","USN-6793-2"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Git version control","requires_auth":"none","summary":"Attackers can achieve remote code execution by crafting malicious Git repositories with submodules on case-insensitive filesystems supporting symlinks.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"git","vendor":"git"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a `.git/` directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. If symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":"2024-05-17","github_poc":64,"max_poc_stars":534,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-05-17T19:33:08Z","kind":"github_poc","ref":"https://github.com/amalmurali47/git_rce","stars":534,"title":"Exploit PoC for CVE-2024-32002"},{"date":"2024-05-18T15:05:28Z","kind":"github_poc","ref":"https://github.com/safebuffer/CVE-2024-32002","stars":108,"title":"CVE-2024-32002 RCE PoC"},{"date":"2024-05-17T19:35:44Z","kind":"github_poc","ref":"https://github.com/amalmurali47/hook","stars":18,"title":"Hook for the PoC for exploiting CVE-2024-32002"},{"date":"2024-05-18T02:42:33Z","kind":"github_poc","ref":"https://github.com/M507/CVE-2024-32002","stars":10,"title":"local poc for CVE-2024-32002"},{"date":"2024-05-21T13:45:58Z","kind":"github_poc","ref":"https://github.com/YukaFake/CVE-2024-32002-Reverse-Shell","stars":6,"title":"Este script demuestra cómo explotar la vulnerabilidad CVE-2024-32002 para obtener una reverse shell, proporcionando acceso remoto al sistema afectado. Úselo con precaución en entornos controlados y solo con fines educativos o de pruebas de seguridad."},{"date":"2024-05-20T02:52:42Z","kind":"github_poc","ref":"https://github.com/jweny/CVE-2024-32002_HOOK","stars":3,"title":null},{"date":"2024-05-20T02:58:57Z","kind":"github_poc","ref":"https://github.com/jweny/CVE-2024-32002_EXP","stars":3,"title":null},{"date":"2024-07-30T14:58:00Z","kind":"github_poc","ref":"https://github.com/NishanthAnand21/CVE-2024-32002-PoC","stars":3,"title":"PoC of CVE-2024-32002 - Remote Code Execution while cloning special-crafted local repositories"}],"tier":"weaponised"},"has_fix":true,"headline":"Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution","id":"CVE-2024-32002","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":1,"n_references":7,"next":{"headline":"Dusk plugin may allow unfettered user authentication in misconfigured installs","id":"CVE-2024-32003"},"packages":[{"ecosystem":"Bitnami","fixed":["2.39.4","2.40.2","2.41.1","2.42.2","2.43.4","2.44.1","2.45.1"],"introduced":["0","2.40.0","2.41.0","2.42.0","2.43.0","2.44.0","2.45.0"],"last_affected":[],"package":"git","purl":"pkg:bitnami/git","source":"BIT-git-2024-32002"}],"prev":{"headline":"SpiceDB: LookupSubjects may return partial results if a specific kind of relation is used","id":"CVE-2024-32001"},"products":["git"],"published":"2024-05-14","related":[{"cvss_score":7.5,"headline":"The sideband payload is passed unfiltered to the terminal in git","id":"CVE-2024-52005","kev_date_added":null,"published":"2025-01-15"},{"cvss_score":7.5,"headline":"Command injection in n/a","id":"CVE-2008-5517","kev_date_added":null,"published":"2009-01-13"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2008-3546","kev_date_added":null,"published":"2008-08-07"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2006-0477","kev_date_added":null,"published":"2006-01-31"},{"cvss_score":5,"headline":"Denial of service in n/a","id":"CVE-2009-2108","kev_date_added":null,"published":"2009-06-18"},{"cvss_score":4.6,"headline":"Command injection in n/a","id":"CVE-2008-5916","kev_date_added":null,"published":"2009-01-21"}],"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["git"]},"summary":"Attackers can achieve remote code execution by crafting malicious Git repositories with submodules on case-insensitive filesystems supporting symlinks.","url":"https://insights.sbomify.com/CVE-2024-32002/"}