CVE-2024-32002CWE-22CWE-434

Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution

Critical · published May 14, 2024

CVSS v3.1
9.1
EPSS
29%
Percentile
98.2
In the wild
Unconfirmed
What it is

🚨 A crafty submodule exploit can trick Git into executing untrusted code while you're still cloning! 🔥 Think of it like a sneaky guest at a potluck who swaps out your carefully crafted dish for something unfamiliar while your back is turned. You might not notice until it's too late! This vulnerability lets attackers write malicious hooks into your `.git/` directory during the cloning process, all while you’re powerless to stop them. Imagine if a stranger could sneak harmful code into your project, compromising everything before you even knew what hit you!

Put simply

Think of it like a sneaky guest at a potluck who swaps out your carefully crafted dish for something unfamiliar while your back is turned. You might not notice until it's too late! 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, Git had a flaw that allowed malicious repositories with submodules to execute unverified code by writing files directly into the `.git/` directory instead of the intended submodule worktree.

What to do

This vulnerability lets attackers write malicious hooks into your `.git/` directory during the cloning process, all while you’re powerless to stop them. Imagine if a stranger could sneak harmful code into your project, compromising everything before you even knew what hit you! Upgrade Git immediately to at least version 2.45.1 or one of the other patched versions. Additionally, consider disabling symbolic link support by running `git config --global core.symlinks false` and, as always, be cautious when cloning repositories from untrusted sources! You've got this! Follow these steps and you'll be a security hero in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.29234 · 98.2th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2024-05-14T18:40Z
EPSS history
Timeline
  • 14 MAY 18:40Z
    Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution
    cvelistv5