Understanding the Case-Insensitive Filesystem Exploit
In May 2024, the Git project disclosed CVE-2024-32002, a critical remote code execution vulnerability (CVSS 9.8). The flaw specifically exploits operating systems with case-insensitive but case-preserving filesystems, such as Windows (NTFS) and macOS (APFS). When cloning a repository with submodules recursively (git clone --recursive), Git could be fooled into writing a malicious hook script into the parent repository's .git/hooks/ directory.
How the Attack Works
- The attacker creates a repository with a submodule pointing to a path like
.git/modules/submodule_pathusing crafted casing variations (e.g..Git/modules/...). - Git creates a symlink pointing to the
.git/directory. - During recursive checkout, Git writes the submodule's files into the symlinked path, dropping an executable
post-checkouthook into the target repository's.git/hooks/folder. - The hook executes immediately during the clone operation with the user's full privileges.
Mandatory Action for Engineering Teams
Update Git across all developer laptops, servers, and CI runners to version 2.45.1, 2.44.1, 2.43.4, 2.42.2, or 2.41.1 immediately. Disable recursive cloning of untrusted third-party repositories.
Enterprise DevOps & Hardware Infrastructure
Jay Digital Solutions equips developer teams with high-speed commercial workstations, local dev servers, and networking gear.