CVE-2025-48384
Git allows arbitrary code execution through broken config quoting
En resumen
Git no cita correctamente valores de configuración con retorno de carro al final, haciendo que submódulos se clonem en ubicaciones incorrectas. Si un enlace simbólico apunta al directorio de hooks de Git, un atacante puede engañar a Git para ejecutar scripts maliciosos durante la configuración del submódulo.
Detalle técnico
Al leer valores de configuración, Git elimina caracteres CRLF pero no cita valores con CR final al escribir, causando interpretación incorrecta de la ruta durante inicialización de submódulo. Un atacante puede preparar un repositorio con ruta de submódulo que contenga CR que, combinado con enlace simbólico apuntando al directorio hooks, dispara ejecución no intencional de scripts post-checkout. Requiere que el usuario clone repositorio malicioso o actualice submódulos (CWE-436: Conflicto de Interpretación, CWE-59: Resolución Inadecuada de Enlace).
Resumen generado y traducido por IA a partir de la descripción oficial.
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
⚠ Recursos públicos, para evaluar la exposición de sistemas que controlas o estás autorizado a probar. Prueba solo con autorización.