CVE-2023-29007: high-severity vulnerability in git
Arbitrary configuration injection via `git submodule deinit`
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Git can be tricked into injecting malicious settings into its configuration file when removing a submodule from a specially crafted repository. An attacker can exploit this to execute arbitrary code on a developer's machine.
A buffer overflow in `git_config_copy_or_rename_section_in_file()` allows injection of arbitrary configuration directives via submodule URLs exceeding 1024 characters. When `git submodule deinit` processes a malicious `.gitmodules` file, injected settings like `core.pager` or `core.sshCommand` can trigger remote code execution with user privileges.
In the same product, most dangerous first.