{"id":21042652,"url":"https://github.com/safebuffer/cve-2024-32002","last_synced_at":"2025-05-15T17:30:54.512Z","repository":{"id":240408237,"uuid":"802533707","full_name":"safebuffer/CVE-2024-32002","owner":"safebuffer","description":"CVE-2024-32002 RCE PoC","archived":false,"fork":false,"pushed_at":"2024-05-18T15:12:59.000Z","size":3,"stargazers_count":105,"open_issues_count":0,"forks_count":26,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T12:11:15.410Z","etag":null,"topics":["cve","git","rce"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/safebuffer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-18T15:05:28.000Z","updated_at":"2025-03-22T06:43:04.000Z","dependencies_parsed_at":"2024-05-18T17:27:11.294Z","dependency_job_id":"8c81e0de-f496-4dbc-b1f3-30996a6a9b2a","html_url":"https://github.com/safebuffer/CVE-2024-32002","commit_stats":null,"previous_names":["safebuffer/cve-2024-32002"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safebuffer%2FCVE-2024-32002","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safebuffer%2FCVE-2024-32002/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safebuffer%2FCVE-2024-32002/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safebuffer%2FCVE-2024-32002/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safebuffer","download_url":"https://codeload.github.com/safebuffer/CVE-2024-32002/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388050,"owners_count":22062975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cve","git","rce"],"created_at":"2024-11-19T14:08:34.492Z","updated_at":"2025-05-15T17:30:54.088Z","avatar_url":"https://github.com/safebuffer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVE-2024-32002 RCE PoC\n\n## Overview\n\nThis repository contains a Proof of Concept (PoC) for CVE-2024-32002, a Remote Code Execution (RCE) vulnerability in Git submodules. The exploit demonstrates how a malicious payload can be triggered via a recursive clone of a Git repository.\n\n## Repository Setup\n\nBefore running the PoC, create the following repositories on your remote Git server or feel free to change the names as needed:\n- `hulk.git`\n- `submod.git`\n- `smash.git`\n\nUpdate the repository paths in the PoC script accordingly if you change the names.\n\n## Exploit Details\n\nThe exploit leverages Git submodules to execute a payload on the target system when the repository is cloned recursively. This PoC is tested on macOS.\n\n### Define Repository Paths\n\n```sh\nHULK_REPO=\"git@github.com:safebuffer/hulk.git\"\npullme_REPO=\"git@github.com:safebuffer/submod.git\"\n\n# Final Exploit Repo\nSMASH_REPO=\"git@github.com:safebuffer/smash.git\"\n```\n\n### Triggering the Exploit\n\nTo trigger the exploit, run the poc.sh script and then execute the following command:\n```sh\ngit clone --recursive $SMASH_REPO\n```\n\n### Payload\nThe default payload in this PoC opens the Calculator application on macOS. You can change this to any payload of your choice.\n```sh\n/System/Applications/Calculator.app/Contents/MacOS/Calculator\n```\n\n### Disclaimer\nThis PoC is for educational purposes only. Use it responsibly and only on systems where you have explicit permission to test. Misuse of this PoC can result in severe consequences.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafebuffer%2Fcve-2024-32002","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafebuffer%2Fcve-2024-32002","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafebuffer%2Fcve-2024-32002/lists"}