Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Cve-2024-32002-poc — This repository contains a PoC for exploiting CVE-2024-32002, a vulnerability in Git that allows RCE during a git clone operation. By crafting repositories with submodules in a specific way, an attacker can exploit symlink handling on case-insensitive filesystems to write files into the .git/ directory, leading to the execution of malicious hooks. | Kitploit
Tools/GitHubGitHub/ashutosh0408/cve-2024-32002-poc
Vulnerability AnalysisExploitationLearning & EducationRed TeamingPayload DevelopmentBinary Exploitation
GitHubashutosh0408/cve-2024-32002-poc

Cve-2024-32002-poc

View Repository
1 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

About

This repository contains a PoC for exploiting CVE-2024-32002, a vulnerability in Git that allows RCE during a git clone operation. By crafting repositories with submodules in a specific way, an attacker can exploit symlink handling on case-insensitive filesystems to write files into the .git/ directory, leading to the execution of malicious hooks.

Share

CVE-2024-32002 RCE PoC

Overview

This 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.

Repository Setup

Before running the PoC, create the following repositories on your remote Git server or feel free to change the names as needed:

  • hulk.git
  • submod.git
  • smash.git

Update the repository paths in the PoC script accordingly if you change the names.

Exploit Details

The exploit leverages Git submodules to execute a payload on the target system when the repository is cloned recursively. This PoC is tested on macOS.

Define Repository Paths

root@kitploit:~
HULK_REPO="[email protected]:safebuffer/hulk.git"
pullme_REPO="[email protected]:safebuffer/submod.git"

# Final Exploit Repo
SMASH_REPO="[email protected]:safebuffer/smash.git"

Triggering the Exploit

To trigger the exploit, run the poc.sh script and then execute the following command:

root@kitploit:~
git clone --recursive $SMASH_REPO

Payload

The default payload in this PoC opens the Calculator application on macOS. You can change this to any payload of your choice.

root@kitploit:~
/System/Applications/Calculator.app/Contents/MacOS/Calculator

Disclaimer

This 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.

Download Tool