Code Execution Risk in Git Due to Submodule Path Handling
CVE-2025-48384
8.1HIGH
What is CVE-2025-48384?
A vulnerability exists in Git that affects how configuration values are read and written, particularly regarding trailing carriage returns. When a submodule path includes a trailing carriage return, it is altered when read back, which can cause the submodule to be checked out to an incorrect location. This misconfiguration poses a security risk when a symlink points to the altered path, potentially leading to the execution of unintended scripts from the submodule's hooks directory. This issue has been addressed in the latest versions of Git.
Affected Version(s)
git < 2.43.7 < 2.43.7
git >= 2.44.0-rc0, < 2.44.4 < 2.44.0-rc0, 2.44.4
git >= 2.45.0-rc0, < 2.45.4 < 2.45.0-rc0, 2.45.4