← volver
CVE-2024-32002

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

CVSS 9.1 CRITICALEPSS 25.3%CWE-22CWE-434
En resumen

Git puede ser engañado para escribir archivos en ubicaciones incorrectas durante la clonación de submódulos en sistemas de archivos insensibles a mayúsculas/minúsculas con soporte de enlaces simbólicos, permitiendo que atacantes ejecuten código malicioso automáticamente antes de la revisión del usuario.

Detalle técnico

CVE-2024-32002 explota vulnerabilidades de traversal de ruta (CWE-22) y carga arbitraria de archivos (CWE-434) en la gestión de submódulos de Git. Un repositorio preparado con submódulos maliciosos puede hacer que Git escriba archivos en directorios `.git/` en lugar de las rutas de worktree previstas, permitiendo ejecución de hooks durante operaciones activas de clonación. El ataque requiere clonar desde un repositorio controlado por el atacante en sistemas de archivos insensibles a mayúsculas/minúsculas con soporte de symlink habilitado.

Resumen generado y traducido por IA a partir de la descripción oficial.
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Productos afectados
git · git
PoCs públicas encontradas70
githubgithub.com/amalmurali47/git_rce532githubgithub.com/safebuffer/CVE-2024-32002109githubgithub.com/amalmurali47/hook18githubgithub.com/M507/CVE-2024-320029githubgithub.com/YukaFake/CVE-2024-32002-Reverse-Shell6githubgithub.com/jweny/CVE-2024-32002_EXP3githubgithub.com/jweny/CVE-2024-32002_HOOK3githubgithub.com/NishanthAnand21/CVE-2024-32002-PoC3githubgithub.com/10cks/CVE-2024-32002-EXP2githubgithub.com/bfengj/CVE-2024-32002-Exploit2githubgithub.com/markuta/CVE-2024-320022githubgithub.com/BasyacatX/CVE-2024-32002-PoC_Chinese2githubgithub.com/10cks/hook1githubgithub.com/Goplush/CVE-2024-32002-git-rce1githubgithub.com/jakob-pennington/cve-2024-32002-poc-rce1githubgithub.com/grecosamuel/CVE-2024-320021githubgithub.com/BohemianHacks/CVE-2024-32002-poc1githubgithub.com/th4s1s/CVE-2024-32002-PoC1githubgithub.com/fadhilthomas/poc-cve-2024-320021githubgithub.com/CrackerCat/CVE-2024-32002_EXP1githubgithub.com/fadhilthomas/hook0githubgithub.com/jakob-pennington/cve-2024-32002-submodule-aw0githubgithub.com/jakob-pennington/cve-2024-32002-poc-aw0githubgithub.com/431m/rcetest0githubgithub.com/AD-Appledog/CVE-2024-320020githubgithub.com/AD-Appledog/wakuwaku0githubgithub.com/tobelight/cve_2024_320020githubgithub.com/sysonlai/CVE-2024-32002-hook0githubgithub.com/TSY244/CVE-2024-32002-git-rce-father-poc0githubgithub.com/blackninja23/CVE-2024-320020githubgithub.com/daemon-reconfig/CVE-2024-320020githubgithub.com/charlesgargasson/CVE-2024-320020githubgithub.com/FlojBoj/CVE-2024-320020githubgithub.com/SpycioKon/CVE-2024-320020githubgithub.com/chrisWalker11/running-CVE-2024-32002-locally-for-tesing0githubgithub.com/sanan2004/CVE-2024-320020githubgithub.com/Masamuneee/hook0githubgithub.com/Masamuneee/CVE-2024-32002-POC0githubgithub.com/jolibb55/donald0githubgithub.com/ashutosh0408/CVE-2024-320020githubgithub.com/ashutosh0408/Cve-2024-32002-poc0githubgithub.com/Dre4m017/fuzzy0githubgithub.com/JoaoLeonello/cve-2024-32002-poc0githubgithub.com/srakkk/cve-2024-32002-demo0githubgithub.com/srakkk/cve-2024-32002-hook0githubgithub.com/DayDayDayDreaming/backup-exec-hook0githubgithub.com/DayDayDayDreaming/backup-exec-cve-320020githubgithub.com/ControlO8/CVE-2024-320020githubgithub.com/ControlO8/CVE-2024-32002-hook0githubgithub.com/Roronoawjd/git_rce0githubgithub.com/TSY244/CVE-2024-32002-git-rce0githubgithub.com/aitorcastel/poc_CVE-2024-32002_submodule0githubgithub.com/markuta/hooky0githubgithub.com/jakob-pennington/cve-2024-32002-submodule-rce0githubgithub.com/10cks/CVE-2024-32002-POC0githubgithub.com/10cks/CVE-2024-32002-hulk0githubgithub.com/10cks/CVE-2024-32002-submod0githubgithub.com/10cks/CVE-2024-32002-smash0githubgithub.com/10cks/CVE-2024-32002-linux-hulk0githubgithub.com/10cks/CVE-2024-32002-linux-submod0githubgithub.com/10cks/CVE-2024-32002-linux-smash0githubgithub.com/aitorcastel/poc_CVE-2024-320020githubgithub.com/Roronoawjd/hook0githubgithub.com/1mxml/CVE-2024-32002-poc0githubgithub.com/bfengj/CVE-2024-32002-hook0githubgithub.com/vincepsh/CVE-2024-320020githubgithub.com/vincepsh/CVE-2024-32002-hook0githubgithub.com/YukaFake/CVE-2024-320020githubgithub.com/WOOOOONG/CVE-2024-320020githubgithub.com/WOOOOONG/hook0
⚠ Recursos públicos, para evaluar la exposición de sistemas que controlas o estás autorizado a probar. Prueba solo con autorización.

¿Quieres saber si tu infraestructura está expuesta a esto?

Hablar con TrueHacking →